mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Oct. 22 2005,16:19 |
|
Practically nothing (except tmp directories) should be chmod'ed 777 unless you don't care about security at all. Typically, non-executable personal files are one of these: 644 (read-write by owner, read-only by everyone else), 664 (read-write by owner and group, read-only by everyone else), or 600 (read-write by owner, unreadable by everyone else). There are other combinations you can use, like 640 or 660, depending on the specific permissions you want. If it's a directory or executable, add 1 to each digit except zero (644 becomes 755, 600 becomes 700). The specifics: first digit = file's owner second = file's group third = everyone else 0 = no permission 4 = read-only 5 = read and execute ('execute' = 'enter' for directories) 6 = read and write 7 = read, write and execute Other numbers can be used but are not used because they are pointless...in order to execute a file you need to be able to read it, so making a file executable but not readable is useless.
Your icon looks fine to me (except for the 'gpsdirve' typo), but maybe xtdesk has trouble with the way the variable is set. One thing that might help is to set the LD_LIBRARY_PATH from a wrapper script instead of the icon. Say you made a script called /opt/gpsdrive/start_gpsdrive (chmod 755) and put that script in the icon instead. The script would just be something like this:
Code Sample | #!/bin/bash LD_LIBRARY_PATH=/opt/gpsdrive/lib /opt/gpsdrive/bin/gpsdrive |
or
Code Sample | #!/bin/bash export LD_LIBRARY_PATH=/opt/gpsdrive/lib exec /opt/gpsdrive/bin/gpsdrive |
Doing it that way will also help from terminal, since you just have to run the script itself rather than setting the variable every time.
Another possibility....Is this an interactive application without a gui? If so you would need to start it in a terminal (aterm -e /opt/gpsdrive/start_gpsdrive)
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|