0
  1. I made a shell script(bash), It's named startup.sh

  2. Then I made also Desktop launcher in, ~/.local/share/applications/my.desktop

I thought 1) and 2) were the same. But they do not behave in the same manner: The two command receive different Environment variables. The process from "startup.sh" has a "http_proxy" variable.

The process form my.desktop doesn't have a http_proxy variable.

I want to have the two commands use the same environment variables.

If have tried using the setting for my.desktop terminal=true, which causes that program to act the same as startup.sh, but also causes a terminal to pop up, which I do not want.

1
  • It would help to know what you are trying to do with the script Jun 19, 2014 at 16:12

1 Answer 1

0

Simply change the Exec line in your .desktop file to run the script.

If this doesn't help add a line at the beginning of the script with cd folder-containing-the-script. Some scripts need this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .