inky icon indicating copy to clipboard operation
inky copied to clipboard

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

Open wilg opened this issue 8 years ago • 6 comments

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

wilg avatar Dec 28 '16 02:12 wilg

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: https://github.com/electron/electron/issues/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...

joethephish avatar Jan 10 '17 17:01 joethephish

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.

erkyrath avatar Jan 10 '17 17:01 erkyrath

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?

carsendecker avatar Apr 27 '20 20:04 carsendecker

Same problem on inky 11.0 macOS 10.12.6

jeremydouglass avatar Apr 27 '20 20:04 jeremydouglass

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 `

Syjgin avatar Dec 02 '21 14:12 Syjgin

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.

lunarcloud avatar Jan 11 '22 19:01 lunarcloud