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.

Is there any way to make a launcher in Unity start a particular application with a particular command line argument?

So, let's say I've got this application in Unity, AppFoo, that I could start from the command line like this:

$ appfoo

But what if I want to start AppFoo with some command line argument, like --do-something-cool? Just as an example, like this:

$ appfoo --do-something-cool

More specifically, I want to start Chrome with --disable-accelerated-compositing due to this bug.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

The easiest way of doing this would probably be by using the app called "Alacarte".

Alacarte is a menu editing applications which is available for free download in the Ubuntu software center.

When the app is installed you can launch it by searching "alacarte" in the dash.

Inside the app you navigate to the app category and then edit the specific app you want by clicking "Properties".

There is a field called "Command" which you from here can edit like your example.

share|improve this answer
    
That worked. I should note that if there is a launcher icon in there before using Alacarte that it needs to be unlocked from there first, and then recreated and locked. –  supercheetah Feb 3 '13 at 17:04
add comment

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.