8000 Launching Inky by opening a file doesn't open the file · Issue #80 · inkle/inky · GitHub
[go: up one dir, main page]

Skip to content

Launching Inky by opening a file doesn't open the file #80

Open

Description

@wilg

Steps to repro:

  1. Open an .ink file in Inky while the application is closed
  2. 💥 An untitled file is opened instead of the file I double clicked in the finder

(Double clicking to open a file works when the application is already open)

macOS 10.12.1 / Inky 0.6.3

Activity

  1. joethephish commented on Jan 10, 2017

    @joethephish
    Member

    I had a look into this, but it seems to be an issue with electron (the framework the app is built in). See this issue: electron/electron#4403

    It seems that @erkyrath managed to get it working in Lectrote... I have the same setup - I register for open-file events in will-finish-launching, and I also add the ink file type to the plist.

    As you say though, it works when Inky is already open, but not when it's closed...

  2. erkyrath commented on Jan 10, 2017

    @erkyrath

    I haven't touched that part of the Lectrote config for many months. It's been working consistently. Not sure what you're doing differently.

  3. carsendecker commented on Apr 27, 2020

    @carsendecker
    Contributor

    It has been awhile, but I am still getting this issue. Opening (double-clicking) an ink file launches Inky, but opens the default empty project instead of my file. The file will only be opened properly if Inky is already running.

    I am on Inky 11.0, MacOS Mojave 10.14.6.

    I have looked through the posted issue and the issues linked to it, but can't seem to find anything that inky isn't already doing (placing the electron open-file event inside will-finish-launching, etc). Is this still an electron problem, or is there something I can take a look at inside Inky to fix?

  4. jeremydouglass commented on Apr 27, 2020

    @jeremydouglass
    Contributor

    Same problem on inky 11.0 macOS 10.12.6

  5. Syjgin commented on Dec 2, 2021

    @Syjgin

    Same problem in the linux (KDE) environment: I have created file association with the editor, but editor is not opening file neither with with launch, nor as a secord copy after that. Maybe, there are some possible walkaround exists? How to open file with the command line? I tried substiture file name after the editor executable name, but nothing happens:
    `/media/disk/Inky-linux-x64/Inky-linux-x64/Inky Main.ink
    Launching inklecate for session id 'Untitled_ink_vk6aFZf_1'
    Launching inklecate for session id 'Untitled_ink_vk6aFZf_2'

    • Ended inklecate session id Untitled_ink_vk6aFZf_1
    • Ended inklecate session id Untitled_ink_vk6aFZf_2
      `
  6. lunarcloud commented on Jan 11, 2022

    @lunarcloud
    Contributor

    If this does get fixed, the linux AppImage build will need a " %f" added to the exec property of "resources/com.inkle.inky.desktop" to support it - but I haven't bothered since the normal version doesn't support it.

  7. Eiekama commented on Oct 17, 2026

    @Eiekama

    same problem on inky 30.0.4, fedora linux 43 (GNOME)
    this is from me installing the linux version from the website and setting up the .desktop file myself. i did add %f to the exec property.

  8. Sal3k commented on Oct 19, 2026

    @Sal3k

    It bothered me so much that I decided to dig into it with Claude and see if it was fixable. Tested myself and seems to be working just fine.
    PR with the fix for Linux: #561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0