Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-10-18 12:01:35

xendistar
Member
Registered: 2011-11-07
Posts: 20

Running script via panel icon

I am having a problem trying to get a script to run from an icon on my second desktop panel, the script runs perfectly from the command line.

I run three PC's through one monitor via a KVM, I recently changed my mouse and when I come back onto my linux PC (SolydX64 bit) (say from my windows PC) the mouse scroll speed is way to fast, so I have a little bash script that I run manually, now I would like to run the script from an icon on my 2nd desktop panel which would be a lot quicker than opening a terminal and running the script manually.

I have made a .desktop file and added it to .local/share/application/ folder but I guess I have something wrong as when I click on the icon, something does happen but the mouse scroll speed is unchanged. Can somebody tell me the correct procedure for getting a bash script to run from a panel icon please.

Offline

#2 2015-10-18 15:01:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,046

Re: Running script via panel icon

In the launcher properties, try setting the command to:

bash -c "your/script/here"

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2015-10-18 15:51:13

xendistar
Member
Registered: 2011-11-07
Posts: 20

Re: Running script via panel icon

Thanks Toz, that worked perfectly.

Offline

Board footer

Powered by FluxBB