Quote:
Originally Posted by nhydra
I am not sure but may be the reason for that is KDE/GNOME files associations. I have installed Slack and it execute all my shell scripts when i click on it. Some other distributions don't do that.
And another thing, the shell script should have .sh extension. It is for that to be recognized.
|
Thanks for your reply..
i have changed the shell script extension to .sh but still can't work.
Here is my shell script. The function of this shell script is to copy all the files in the CD-ROM into desktop.
Quote:
#!/bin/bash
#File copy with progress indicators
mkdir ~/.gnome-desktop/MathsF5MyCD
echo "Preparing to copy"
cp -v -r ./Data ~/.gnome-desktop/MathsF5MyCD
cp -v -r ./Fonts ~/.gnome-desktop/MathsF5MyCD
cp -v -r ./Plugin ~/.gnome-desktop/MathsF5MyCD
cp -v -r ./Xtras ~/.gnome-desktop/MathsF5MyCD
cp -v ./mathsf5.exe ~/.gnome-desktop/MathsF5MyCD
cp -v ./Linux_Run ~/.gnome-desktop/MathsF5MyCD
cp -v ./Linux_Setup ~/.gnome-desktop/MathsF5MyCD
cp -v ./Linux_Wine.rpm ~/.gnome-desktop/MathsF5MyCD
cp -v ./Linux_install_help.txt ~/.gnome-desktop/MathsF5MyCD
cp -v ./fontmap.txt ~/.gnome-desktop/MathsF5MyCD
echo "finish copy"
|
when i run in terminal manually, it works. but when i double click the shell script, it fails to run.
please help me..thanks