inky
inky copied to clipboard
Launching Inky by opening a file doesn't open the file
Steps to repro:
- Open an .ink file in Inky while the application is closed
- 💥 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
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...
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.
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?
Same problem on inky 11.0 macOS 10.12.6
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 `
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.