line 1: [Desktop: command not found on .desktop file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















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:
my screenfetch










share|improve this question

















  • 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" 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















0















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:
my screenfetch










share|improve this question

















  • 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" 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













0












0








0








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:
my screenfetch










share|improve this question














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:
my screenfetch







kde manjaro .desktop






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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" 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












  • 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" 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







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










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









1














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.






share|improve this answer























  • 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















1














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.






share|improve this answer























  • 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













1












1








1







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 14 '17 at 7:53









ZiazisZiazis

232110




232110












  • 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
















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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay