Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to make a program in the Unity Dash to launch with a custom option, as for example in the terminal it would be

xyz --reconfig

Is this possible?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I would recommend the following:

What you want to do is edit the launcher, or desktop, file. Open up terminal and type:

cp /usr/share/applications/(NAME OF YOUR PROGRAM).desktop ~/.local/share/applications/

Then, run:

 gedit ~/.local/share/applications/(NAME OF YOUR PROGRAM).desktop

The document at the top should say "Exec" somewhere. Add whatever you want to after the program name there, save, and either logout or run unity --replace.

Edit:

The command cp /usr/share/appications/(NAME OF YOUR PROGRAM).desktop ~/.local/share/applications/ copies the original file over to a folder that is for only one user. If you want to make it so that a launcher is changed across all users, run sudo gedit /usr/share/applications/(NAME OF YOUR PROGRAM).desktop but make sure you back up the original first.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.