![]() |
#1 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Error trying to add an Open with application on linux
... by which I mean the builtin Open with, not the plugin. I get the following two errors in a row.
By default the /usr/share/applications/ folder is opened for selection, so I assumed I was supposed to select a desktop file to generate the entry with. Code:
calibre, version 2.27.0 ERROR: Cannot execute: The program /home/eschwartz/.local/share/applications/wine/Programs/Adobe/Adobe Digital Editions/Adobe Digital Editions.desktop is not an executable file ----------------------------------------------------------------------- calibre, version 2.27.0 ERROR: Unhandled exception: <b>AttributeError</b>:'int' object has no attribute 'get' calibre 2.27* isfrozen: True is64bit: False Linux-4.0.0-1-ck-i686-with-glibc2.0 Linux ('32bit', 'ELF') ('Linux', '4.0.0-1-ck', '#1 SMP PREEMPT Mon Apr 27 03:40:55 CDT 2015') Python 2.7.9 Linux: ('', '', '') Successfully initialized third party plugins: DeDRM && View Manager && KindleUnpack - The Plugin && Quality Check && Modify ePub && Diaps Editing Toolbag && FanFicFare && Goodreads Sync && Overdrive Link && Open With && Kindle Collections && Annotations && Overdrive Link Traceback (most recent call last): File "/home/eschwartz/git/calibre/src/calibre/gui2/book_details.py", line 500, in choose_open_with entry = choose_program(fmt, self) File "/home/eschwartz/git/calibre/src/calibre/gui2/open_with.py", line 299, in choose_program entry = finalize_entry(entry) File "/home/eschwartz/git/calibre/src/calibre/gui2/open_with.py", line 202, in finalize_entry icon_path = entry.get('Icon') AttributeError: 'int' object has no attribute 'get' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant choose a .desktop file, you have to choose an actual executable, such as a script or an ELF exe.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
OK, but the default directory is a little confusing.
![]() Also, I found this problem chiefly because WINE doesn't create MimeType associations... but I fixed that by manually editing. Then of course calibre properly picked it up automatically. I did notice however, that the icon specified in the .desktop file, which can be found in "~/.local/share/icons/hicolor/*/apps/", was not picked up in the process. This problem will really only be found by people installing software to their home directory ![]() ![]() ![]() (I saw you fixed the double error, and chose to not allow manually adding associations through .desktop files, which is fair enough.) |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fixed. And on my system Wine does add mimetypes for ADE.
/home/kovid/.local/share/applications/wine-extension-epub.desktop: Code:
[Desktop Entry] Type=Application Name=Adobe Digital Editions MimeType=application/epub+zip; Exec=env WINEPREFIX="/home/kovid/wine/ade" wine start /ProgIDOpen Adobe.DigitalEditions %f NoDisplay=true StartupNotify=true Icon=3455_digitaleditions.0 |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Very possibly the fault is with ADE1.7* not declaring itself.
![]() Thanks for the fixes. * -- I don't use later versions since they aren't stable and I only use it to download and pass books into calibre... and that, rarely |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have ADE 1.7 as well. IIRC it is the last version that runs under wine reliably.
|
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Then I have no idea why my desktop file looks different.
Mine also opens a .lnk for some reason, maybe it was created as a desktop shortcut??? In the unlikely event I ever have to reinstall it, I might just bother to investigate. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Application Error? | cyclops0000 | Kindle Developer's Corner | 4 | 12-29-2014 01:30 PM |
Add application to home screen | tomaschavez00 | Onyx Boox | 2 | 10-09-2013 04:12 PM |
Application update: application not installed error | Merischino | Kindle Fire | 4 | 12-01-2011 10:30 PM |
which application on linux to read a mobi file ? | geordiejohn | Library Management | 2 | 11-25-2011 01:09 PM |
Announcing Janus - A Calibre Web Application [Open Source] | cruffalo | Related Tools | 5 | 09-07-2011 05:36 PM |