usmanajmal
April 14th, 2010, 12:35 PM
Hi
Is there a way I can run myProgram when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?
I actually developed a script which I set to run at startup via System > Preferences > Startup Application i.e. when the Desktop appears. In the script I mounted a partition using
sudo mount /dev/sda1 /mnt &> result.txt After executing script a file named result.txt was created which contained
sudo: no tty present and no askpass program specified In other words the mounting failed. If I run the script myself from the terminal using sudo ./myProgram i don't face this problem and the drive gets mounted successfully.
Any suggestions please....
Is there a way I can run myProgram when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?
I actually developed a script which I set to run at startup via System > Preferences > Startup Application i.e. when the Desktop appears. In the script I mounted a partition using
sudo mount /dev/sda1 /mnt &> result.txt After executing script a file named result.txt was created which contained
sudo: no tty present and no askpass program specified In other words the mounting failed. If I run the script myself from the terminal using sudo ./myProgram i don't face this problem and the drive gets mounted successfully.
Any suggestions please....