On 09/11/2011 12:51 PM, dwgallien pecked at the keyboard and wrote:
I have written a few bash scripts for synching files to a memory stick and I am wondering, is there a way to execute a script by making an icon and clicking on it from kde? I know how to execute the scripts from the command line using . or sh already, but I haven't been able to figure out how to execute by clicking on the file's icon.
Thanks George
The script doesn't execute by just clicking on the file in Dolphin? And if you create a soft link to that file elsewhere, e.g., in the Desktop Folder plasmoid, should do the same. Or you can create a kmenu entry using whatever icon you like and call the script from kickoff favorites, or drag the entry to your taskbar or to the launcher plasmoid. Or you can manually create the same kind of .desktop file that kmenu does, see ~home/.local/share/applications; that .desktop file can be put anywhere and when clicked on will execute.
Make sure you set the file execute flag, chmod +x <file to execute>. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org