Desktop file isn't running
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
command-line .desktop
add a comment |Â
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
command-line .desktop
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 theExec
value tobash /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
add a comment |Â
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
command-line .desktop
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
command-line .desktop
edited Apr 10 at 5:38
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
Jacob Vlijm
61.9k9120214
61.9k9120214
asked Apr 10 at 2:50
![](https://lh3.googleusercontent.com/-QAqAgytTj2Y/AAAAAAAAAAI/AAAAAAAAAFQ/ieYcQDuPxvI/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-QAqAgytTj2Y/AAAAAAAAAAI/AAAAAAAAAFQ/ieYcQDuPxvI/photo.jpg?sz=32)
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 theExec
value tobash /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
add a comment |Â
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 theExec
value tobash /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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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 tobash /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