How do you get a *.desktop file to work for a non-repository app?
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;
files icons .desktop syntax location
|
show 3 more comments
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;
files icons .desktop syntax location
1
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
@Kulfy The icon path is most probably not as issue provided there is actually an image file named0914_Kindle.0in one of thehicolordirectories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).
– pomsky
Jan 3 at 11:02
So does running/home/myname/kindle-web-linux-x64/kindle-webin Terminal launch the application?
– pomsky
Jan 3 at 12:13
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27
|
show 3 more comments
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;
files icons .desktop syntax location
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;
files icons .desktop syntax location
files icons .desktop syntax location
edited Jan 3 at 12:16
pomsky
29.2k1190116
29.2k1190116
asked Jan 3 at 8:40
Hedley FingerHedley Finger
1591216
1591216
1
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
@Kulfy The icon path is most probably not as issue provided there is actually an image file named0914_Kindle.0in one of thehicolordirectories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).
– pomsky
Jan 3 at 11:02
So does running/home/myname/kindle-web-linux-x64/kindle-webin Terminal launch the application?
– pomsky
Jan 3 at 12:13
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27
|
show 3 more comments
1
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
@Kulfy The icon path is most probably not as issue provided there is actually an image file named0914_Kindle.0in one of thehicolordirectories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).
– pomsky
Jan 3 at 11:02
So does running/home/myname/kindle-web-linux-x64/kindle-webin Terminal launch the application?
– pomsky
Jan 3 at 12:13
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27
1
1
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
@Kulfy The icon path is most probably not as issue provided there is actually an image file named
0914_Kindle.0 in one of the hicolor directories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).– pomsky
Jan 3 at 11:02
@Kulfy The icon path is most probably not as issue provided there is actually an image file named
0914_Kindle.0 in one of the hicolor directories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).– pomsky
Jan 3 at 11:02
So does running
/home/myname/kindle-web-linux-x64/kindle-web in Terminal launch the application?– pomsky
Jan 3 at 12:13
So does running
/home/myname/kindle-web-linux-x64/kindle-web in Terminal launch the application?– pomsky
Jan 3 at 12:13
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27
|
show 3 more comments
2 Answers
2
active
oldest
votes
If running
/home/myname/kindle-web-linux-x64/kindle-web
in Terminal indeed launches the application whereas the .desktop launcher doesn't, then change the Exec line from
Exec=/home/myname/kindle-web-linux-x64/kindle-web
to
Exec=bash -c '/home/myname/kindle-web-linux-x64/kindle-web'
add a comment |
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a .desktop shortcut.
Steps to create:
- Open
https://read.amazon.comin Google Chrome - Click on the Chrome's top right menu
- Navigate to More tools -> Create a shortcut
At 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.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106513%2fhow-do-you-get-a-desktop-file-to-work-for-a-non-repository-app%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If running
/home/myname/kindle-web-linux-x64/kindle-web
in Terminal indeed launches the application whereas the .desktop launcher doesn't, then change the Exec line from
Exec=/home/myname/kindle-web-linux-x64/kindle-web
to
Exec=bash -c '/home/myname/kindle-web-linux-x64/kindle-web'
add a comment |
If running
/home/myname/kindle-web-linux-x64/kindle-web
in Terminal indeed launches the application whereas the .desktop launcher doesn't, then change the Exec line from
Exec=/home/myname/kindle-web-linux-x64/kindle-web
to
Exec=bash -c '/home/myname/kindle-web-linux-x64/kindle-web'
add a comment |
If running
/home/myname/kindle-web-linux-x64/kindle-web
in Terminal indeed launches the application whereas the .desktop launcher doesn't, then change the Exec line from
Exec=/home/myname/kindle-web-linux-x64/kindle-web
to
Exec=bash -c '/home/myname/kindle-web-linux-x64/kindle-web'
If running
/home/myname/kindle-web-linux-x64/kindle-web
in Terminal indeed launches the application whereas the .desktop launcher doesn't, then change the Exec line from
Exec=/home/myname/kindle-web-linux-x64/kindle-web
to
Exec=bash -c '/home/myname/kindle-web-linux-x64/kindle-web'
answered Jan 4 at 17:16
pomskypomsky
29.2k1190116
29.2k1190116
add a comment |
add a comment |
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a .desktop shortcut.
Steps to create:
- Open
https://read.amazon.comin Google Chrome - Click on the Chrome's top right menu
- Navigate to More tools -> Create a shortcut
At 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.
add a comment |
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a .desktop shortcut.
Steps to create:
- Open
https://read.amazon.comin Google Chrome - Click on the Chrome's top right menu
- Navigate to More tools -> Create a shortcut
At 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.
add a comment |
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a .desktop shortcut.
Steps to create:
- Open
https://read.amazon.comin Google Chrome - Click on the Chrome's top right menu
- Navigate to More tools -> Create a shortcut
At 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.
Google Chrome actually has a feature to make a shortcut on desktop, which on Linux will effectively create a .desktop shortcut.
Steps to create:
- Open
https://read.amazon.comin Google Chrome - Click on the Chrome's top right menu
- Navigate to More tools -> Create a shortcut
At 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.
answered Jan 4 at 18:51
Sergiy KolodyazhnyySergiy Kolodyazhnyy
70.5k9146309
70.5k9146309
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106513%2fhow-do-you-get-a-desktop-file-to-work-for-a-non-repository-app%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Is the .desktop file executable?
– Xen2050
Jan 3 at 8:51
The icon path is also incorrect. If .desktop is executable too, then what do you get when you double click on .desktop file?
– Kulfy
Jan 3 at 9:15
@Kulfy The icon path is most probably not as issue provided there is actually an image file named
0914_Kindle.0in one of thehicolordirectories. hicolor is the default fallback theme for icon themes (if the icon is not found in the current icon theme, it should look into hicolor for icons).– pomsky
Jan 3 at 11:02
So does running
/home/myname/kindle-web-linux-x64/kindle-webin Terminal launch the application?– pomsky
Jan 3 at 12:13
@pomsky But I believe this is the reason why It does not display the Kindle icon on the file when viewed in Nautilus.
– Kulfy
Jan 3 at 12:27