![]() |
#1 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Open With ... Greyed out
Hi,
for images i choosed Affinity Photo as my app. But once choosen, its greyed out and is not clickable. Selecting Affinity Photo via other Apllications wrks fine, still the entry unter open with stays greyed out. Any idea? (macOs Mojave, Sigil 0.9.17) |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Check that Affinity Photo app in its Info.plist lists the exact file extension that you are trying to open. If an app does not list the file extension, Apple will not allow it to be opened.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
It is, and it works if i choose with "other applicvation" und it worked fine in Sigil 0.9.9
Code:
<string>jpg</string> <string>jpeg</string> <string>jpegxr</string> <string>jxr</string> <string>j2k</string> |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I am obviously not seeing this on my mac. In Sigil/src/Misc/OpenExternally.cpp
you will see that Sigil creates a detached process and runs the following command: Code:
if (QFile::exists(filePath) && QDir(application).exists()) { QStringList arguments = QStringList() << "-a" << application << filePath; return QProcess::startDetached("/usr/bin/open", arguments); } open -a YOUR_APPLICATION_NAME FULLPATHTOAFILETOBEOPENED Does that work? Or is this just a silly case of having a space in the application name and us needing to add quotes around the application name itself? |
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
The Appname is "Affinity Photo", so yes, it has a blank in the name.
Code:
open -a "Affinity Photo" ./cover1.jpg Last edited by Vroni; 08-25-2019 at 11:27 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
The code has not changed.
Here is that same snippet of code from Sigil 0.8.x timeframe: Code:
if (QFile::exists(filePath) && QDir(application).exists()) { QStringList arguments = QStringList() << "-a" << application << filePath; return QProcess::startDetached("/usr/bin/open", arguments); } Last edited by KevinH; 08-25-2019 at 11:44 AM. |
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#8 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
![]() I didnt typed it in, so its not present. Code:
open -a "Affinity Photo.app" ./cover1.jpg entry in sigil.ini Code:
[open_with] editors_image=Affinity Photo\x1f/Applications/Affinity Photo.app Last edited by Vroni; 08-25-2019 at 11:51 AM. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hmm... we could try wrapping the application name in the open command in quotes but that has never been needed in the past.
What happens if you exit Sigil and then edit the sigil.ini file as follows: editors_image=Affinity Photo\x1f"/Applications/Affinity Photo.app" To wrap the actual application path in double quotes. Then fire up Sigil and try. |
![]() |
![]() |
![]() |
#10 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Still greyed out
|
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Perhaps a bug in the Image Tab code. Please try right clicking on the cover.jpg name in the BookBrowser window itself.
Any difference? Last edited by KevinH; 08-25-2019 at 12:33 PM. |
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Just found it. Definite bug in context menu creation code in ImageTab code. I will push a fix for it.
As a workaround, use right click in BookBrowser window to launch what you need. Kevin |
![]() |
![]() |
![]() |
#13 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,545
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Now fixed in master.
|
![]() |
![]() |
![]() |
#14 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
ACK. Bookbrowser works fine.
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,448
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I never even new there was a different context menu on the tab itself that could be used with Open With. Always used the Book Browser context menu.
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
metadata.db is greyed out | ChipAHoy | Library Management | 1 | 10-02-2018 09:51 PM |
Why are Genres greyed out? | docmartn | Library Management | 2 | 05-03-2017 12:07 PM |
Vocabulary builder greyed out | crowned | Amazon Kindle | 6 | 01-31-2017 12:16 AM |
Greyed out Tags | jaysel | Library Management | 2 | 02-19-2011 12:26 PM |
My Books Greyed out | Psyke | Kobo Reader | 0 | 10-26-2010 11:24 AM |