On Linux, the installer I have built creates a shortcut in my desktop and points to the right file, but it still does not work. The script works fine from the command line.

asked 06 Sep '11, 06:51

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


It may be that your script requires a specific working directory. If you find this issue, you can try passing the working directory to the script, and cd into it before running. As exec argument when creating the shortcut put :

\${installdir}/example

Then, inside script add the following line at the beginning, after

#!/bin/sh
:
cd \$1

That will cd into the correct directory before executing the rest of the script.

link

answered 06 Sep '11, 06:53

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×73
×41
×13
×13

Asked: 06 Sep '11, 06:51

Seen: 1,674 times

Last updated: 15 Sep '11, 05:55