I turned the Amazon cloud reader site https://read.amazon.com into a desktop app with nativefier
. It works amazingly well as a standalone reader for books that have been downloaded and also automatically downloads books in the cloud when requested.
Instead of launching /home/myname/kindle-web-linux-x64/kindle-web
from the console all the time, I tried to make a Kindle-Web desktop file to place in the launcher. My file won't work in two ways:
- It won't launch Kindle-Web.
- It does not display the Kindle icon on the file when viewed in Nautilus.
The code is below. Can anyone tell me where I went wrong. The icon files are in /home/myname/.local/share/icons/hicolor/<resolution-folders>
, and /home/myname/.icons/hicolor/*
.
[Desktop Entry] Version=1.0 Name=Kindle-Web Comment=Desktop app created from Kindle Cloud Reader page (https://read.amazon.com) by nativefier Exec=/home/myname/kindle-web-linux-x64/kindle-web Path=/home/myname/ # StartupNotify=true # StartupWMClass=kindle-web Icon=0914_Kindle.0 # Terminal=false Type=Application Categories=Publishing;Literature;Documentation;Office;
If running
in Terminal indeed launches the application whereas the
.desktop
launcher doesn't, then change theExec
line fromto
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a
.desktop
shortcut.Steps to create:
https://read.amazon.com
in Google ChromeAt this point you should have the
.desktop
file in your home directory, which should launch a single chrome window. You can customize the resulting file if you like.I will answer about my experience.
First I recommend, not using "." on icon names. I am not sure why, but I had in past the same problem with a desktop file with an icon called with org.xxx.xxx style, and icon never shown in "Application Menu".
I recommend that your icon have at least 128x128 version.
Call the update-icon-caches
So now, you should see the app in "Applications Menu" with correct icon displayed