Script from Icon

Code junkies hangout here

Moderators: ChriThor, LXF moderators

Script from Icon

Postby Dave-Pritchard » Mon Jul 19, 2010 5:42 pm

I have a script to backup files to a usb drive, I would like to run it from an icon on the desktop, rather than opening a konsole and prodding a keyboard.
Putting konsole at the start of the scrip only opens a konsole ( expected ), is there a way to open a konsole and then run the script ?
ps I am total dunce at writing scripts.
Any help most welcome Dave P..
Posts: 33
Joined: Sun Jan 08, 2006 8:59 pm

Postby ajgreeny » Mon Jul 19, 2010 8:48 pm

You do not need to open a konsole at all if you don't want to.

Just use the shell script format of
Code: Select all
cp <the rest of the command>

Now save it as or whatever name you want, make it executable with
Code: Select all
chmod +x
and then make a launcher to it on the desktop, which I am not sure how you do in KDE (I assume KDE as you said you use konsole)
Xubuntu 16.04 user, and loving it!
LXF regular
Posts: 517
Joined: Wed May 10, 2006 8:18 pm
Location: Oxfordshire.

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest