line 1: [Desktop: command not found on .desktop file
Clash Royale CLAN TAG#URR8PPP
When I try to execute this file:
[Desktop Entry]
Type=Application
Name=Shiginima Launcher
Icon=/home/edoardo/Immagini/SVG/minecraft-1.svg
Exec=java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
Terminal=false
with gtk-launch
, it starts loading and after it crash (without opening).
Furthermore if I execute the .desktop file (the same file) inside a terminal, it return an output like this:
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 1: [Desktop: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 4: Launcher: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 6: -jar: command not found
How can I fix it?
If it can be useful:
kde manjaro .desktop
add a comment |
When I try to execute this file:
[Desktop Entry]
Type=Application
Name=Shiginima Launcher
Icon=/home/edoardo/Immagini/SVG/minecraft-1.svg
Exec=java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
Terminal=false
with gtk-launch
, it starts loading and after it crash (without opening).
Furthermore if I execute the .desktop file (the same file) inside a terminal, it return an output like this:
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 1: [Desktop: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 4: Launcher: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 6: -jar: command not found
How can I fix it?
If it can be useful:
kde manjaro .desktop
3
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can executejava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal
– steeldriver
Jul 14 '17 at 0:01
Although preceding the .desktop file proper with#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...
– Christian
Jul 14 '17 at 0:14
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
with bothjava -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
andjava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work
– Edoardo La Greca
Jul 16 '17 at 17:00
add a comment |
When I try to execute this file:
[Desktop Entry]
Type=Application
Name=Shiginima Launcher
Icon=/home/edoardo/Immagini/SVG/minecraft-1.svg
Exec=java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
Terminal=false
with gtk-launch
, it starts loading and after it crash (without opening).
Furthermore if I execute the .desktop file (the same file) inside a terminal, it return an output like this:
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 1: [Desktop: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 4: Launcher: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 6: -jar: command not found
How can I fix it?
If it can be useful:
kde manjaro .desktop
When I try to execute this file:
[Desktop Entry]
Type=Application
Name=Shiginima Launcher
Icon=/home/edoardo/Immagini/SVG/minecraft-1.svg
Exec=java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
Terminal=false
with gtk-launch
, it starts loading and after it crash (without opening).
Furthermore if I execute the .desktop file (the same file) inside a terminal, it return an output like this:
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 1: [Desktop: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 4: Launcher: command not found
/home/edoardo/Scrivania/Giochi/Minecraft/launcher.desktop: line 6: -jar: command not found
How can I fix it?
If it can be useful:
kde manjaro .desktop
kde manjaro .desktop
asked Jul 13 '17 at 22:53
Edoardo La GrecaEdoardo La Greca
11
11
3
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can executejava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal
– steeldriver
Jul 14 '17 at 0:01
Although preceding the .desktop file proper with#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...
– Christian
Jul 14 '17 at 0:14
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
with bothjava -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
andjava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work
– Edoardo La Greca
Jul 16 '17 at 17:00
add a comment |
3
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can executejava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal
– steeldriver
Jul 14 '17 at 0:01
Although preceding the .desktop file proper with#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...
– Christian
Jul 14 '17 at 0:14
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
with bothjava -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
andjava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work
– Edoardo La Greca
Jul 16 '17 at 17:00
3
3
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can execute
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal– steeldriver
Jul 14 '17 at 0:01
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can execute
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal– steeldriver
Jul 14 '17 at 0:01
Although preceding the .desktop file proper with
#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...– Christian
Jul 14 '17 at 0:14
Although preceding the .desktop file proper with
#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...– Christian
Jul 14 '17 at 0:14
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
with both
java -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
and java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work– Edoardo La Greca
Jul 16 '17 at 17:00
with both
java -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
and java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work– Edoardo La Greca
Jul 16 '17 at 17:00
add a comment |
1 Answer
1
active
oldest
votes
Like the comments told you, your test is only showing that the .desktop is not a shell script. That's why you get all those errors aswell as why you get the -jar
command not found since in that test you actually set a variable "exec"="java" afterwards the shell tries to run -jar which it doesn't find.
So first of all try
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
If that doesn't work you might need to look into that first of all.
Also you can set your Terminal=true
for now, so you actually get an output when you click on the .desktop file so you are able to see what is happening.
The command in theExec
parameter works fine but if I setTerminal=true
nothing change.
– Edoardo La Greca
Jul 14 '17 at 17:32
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f378363%2fline-1-desktop-command-not-found-on-desktop-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Like the comments told you, your test is only showing that the .desktop is not a shell script. That's why you get all those errors aswell as why you get the -jar
command not found since in that test you actually set a variable "exec"="java" afterwards the shell tries to run -jar which it doesn't find.
So first of all try
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
If that doesn't work you might need to look into that first of all.
Also you can set your Terminal=true
for now, so you actually get an output when you click on the .desktop file so you are able to see what is happening.
The command in theExec
parameter works fine but if I setTerminal=true
nothing change.
– Edoardo La Greca
Jul 14 '17 at 17:32
add a comment |
Like the comments told you, your test is only showing that the .desktop is not a shell script. That's why you get all those errors aswell as why you get the -jar
command not found since in that test you actually set a variable "exec"="java" afterwards the shell tries to run -jar which it doesn't find.
So first of all try
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
If that doesn't work you might need to look into that first of all.
Also you can set your Terminal=true
for now, so you actually get an output when you click on the .desktop file so you are able to see what is happening.
The command in theExec
parameter works fine but if I setTerminal=true
nothing change.
– Edoardo La Greca
Jul 14 '17 at 17:32
add a comment |
Like the comments told you, your test is only showing that the .desktop is not a shell script. That's why you get all those errors aswell as why you get the -jar
command not found since in that test you actually set a variable "exec"="java" afterwards the shell tries to run -jar which it doesn't find.
So first of all try
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
If that doesn't work you might need to look into that first of all.
Also you can set your Terminal=true
for now, so you actually get an output when you click on the .desktop file so you are able to see what is happening.
Like the comments told you, your test is only showing that the .desktop is not a shell script. That's why you get all those errors aswell as why you get the -jar
command not found since in that test you actually set a variable "exec"="java" afterwards the shell tries to run -jar which it doesn't find.
So first of all try
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
If that doesn't work you might need to look into that first of all.
Also you can set your Terminal=true
for now, so you actually get an output when you click on the .desktop file so you are able to see what is happening.
answered Jul 14 '17 at 7:53
ZiazisZiazis
232110
232110
The command in theExec
parameter works fine but if I setTerminal=true
nothing change.
– Edoardo La Greca
Jul 14 '17 at 17:32
add a comment |
The command in theExec
parameter works fine but if I setTerminal=true
nothing change.
– Edoardo La Greca
Jul 14 '17 at 17:32
The command in the
Exec
parameter works fine but if I set Terminal=true
nothing change.– Edoardo La Greca
Jul 14 '17 at 17:32
The command in the
Exec
parameter works fine but if I set Terminal=true
nothing change.– Edoardo La Greca
Jul 14 '17 at 17:32
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f378363%2fline-1-desktop-command-not-found-on-desktop-file%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
3
Your "furthermore" test is just telling you that .desktop files aren't shell scripts, and can't be executed as such - a more useful test would be whether you can execute
java -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
in a terminal– steeldriver
Jul 14 '17 at 0:01
Although preceding the .desktop file proper with
#!/usr/bin/xdg-open
does work and is quite a fun thing I hadn't thought about until now...– Christian
Jul 14 '17 at 0:14
@Christian I added this line as first line, now no errors on the terminal (no output) but it does not work anyway.
– Edoardo La Greca
Jul 14 '17 at 17:29
Did you try just getting rid of the backslashes that escape the spaces?
– Christian
Jul 15 '17 at 14:43
with both
java -jar "/home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar"
andjava -jar /home/edoardo/Scrivania/Giochi/Minecraft/Shiginima Launcher SE v3.100.jar
it does not work– Edoardo La Greca
Jul 16 '17 at 17:00