Desktop file isn't running

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








up vote
1
down vote

favorite












So I've tested and my sh file runs just fine. But meanwhile, these desktop files never run correctly. I have tried running the same command and checking it in terminal to make sure that my path is correct. Running ./home/padded-gamer/Downloads/Twine.sh runs just fine and boots up Twine easily.



It doesn't appear to be my fault in any regard. I've troubleshooted and gotten the command to run through terminal. But not through desktop. I have physically googled every possible method on the Internet. So I have no idea.



[Desktop Entry]
Encoding=UTF-8
Name=Twine
Version=2.2.1
Type=Application
Terminal=False
Exec=/home/padded-gamer/Downloads/Twine.sh


The sh file looks like this and runs perfectly.



 #!/bin/bash
./Downloads/twine_2.2.1/Twine









share|improve this question























  • Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
    – ravery
    Apr 10 at 3:05











  • You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
    – dsstorefile1
    Apr 10 at 4:10







  • 1




    Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
    – Jacob Vlijm
    Apr 10 at 5:36















up vote
1
down vote

favorite












So I've tested and my sh file runs just fine. But meanwhile, these desktop files never run correctly. I have tried running the same command and checking it in terminal to make sure that my path is correct. Running ./home/padded-gamer/Downloads/Twine.sh runs just fine and boots up Twine easily.



It doesn't appear to be my fault in any regard. I've troubleshooted and gotten the command to run through terminal. But not through desktop. I have physically googled every possible method on the Internet. So I have no idea.



[Desktop Entry]
Encoding=UTF-8
Name=Twine
Version=2.2.1
Type=Application
Terminal=False
Exec=/home/padded-gamer/Downloads/Twine.sh


The sh file looks like this and runs perfectly.



 #!/bin/bash
./Downloads/twine_2.2.1/Twine









share|improve this question























  • Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
    – ravery
    Apr 10 at 3:05











  • You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
    – dsstorefile1
    Apr 10 at 4:10







  • 1




    Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
    – Jacob Vlijm
    Apr 10 at 5:36













up vote
1
down vote

favorite









up vote
1
down vote

favorite











So I've tested and my sh file runs just fine. But meanwhile, these desktop files never run correctly. I have tried running the same command and checking it in terminal to make sure that my path is correct. Running ./home/padded-gamer/Downloads/Twine.sh runs just fine and boots up Twine easily.



It doesn't appear to be my fault in any regard. I've troubleshooted and gotten the command to run through terminal. But not through desktop. I have physically googled every possible method on the Internet. So I have no idea.



[Desktop Entry]
Encoding=UTF-8
Name=Twine
Version=2.2.1
Type=Application
Terminal=False
Exec=/home/padded-gamer/Downloads/Twine.sh


The sh file looks like this and runs perfectly.



 #!/bin/bash
./Downloads/twine_2.2.1/Twine









share|improve this question















So I've tested and my sh file runs just fine. But meanwhile, these desktop files never run correctly. I have tried running the same command and checking it in terminal to make sure that my path is correct. Running ./home/padded-gamer/Downloads/Twine.sh runs just fine and boots up Twine easily.



It doesn't appear to be my fault in any regard. I've troubleshooted and gotten the command to run through terminal. But not through desktop. I have physically googled every possible method on the Internet. So I have no idea.



[Desktop Entry]
Encoding=UTF-8
Name=Twine
Version=2.2.1
Type=Application
Terminal=False
Exec=/home/padded-gamer/Downloads/Twine.sh


The sh file looks like this and runs perfectly.



 #!/bin/bash
./Downloads/twine_2.2.1/Twine






command-line .desktop






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 10 at 5:38









Jacob Vlijm

61.9k9120214




61.9k9120214










asked Apr 10 at 2:50









Padded Gamer

117




117











  • Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
    – ravery
    Apr 10 at 3:05











  • You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
    – dsstorefile1
    Apr 10 at 4:10







  • 1




    Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
    – Jacob Vlijm
    Apr 10 at 5:36

















  • Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
    – ravery
    Apr 10 at 3:05











  • You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
    – dsstorefile1
    Apr 10 at 4:10







  • 1




    Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
    – Jacob Vlijm
    Apr 10 at 5:36
















Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
– ravery
Apr 10 at 3:05





Why not launch the game directly instead of using a Bash script that does nothing but launch the game? PS: Bash may require a terminal or a different type.
– ravery
Apr 10 at 3:05













You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
– dsstorefile1
Apr 10 at 4:10





You can 1) follow ravery's advice and run the game directly, or 2) change the Exec value to bash /home/padded-gamer/Downloads/Twine.sh since .desktop files don't execute the target in a shell environment, which your script needs.
– dsstorefile1
Apr 10 at 4:10





1




1




Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
– Jacob Vlijm
Apr 10 at 5:36





Twine.sh looks for the executable from its own directory (using ./). You need to cd into that dir first: Exec=/bin/bash -c "cd <directory> && run...." Nicely documented question +1.
– Jacob Vlijm
Apr 10 at 5:36
















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023498%2fdesktop-file-isnt-running%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023498%2fdesktop-file-isnt-running%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491