Monday, March 21, 2016

11.04 - How do I change the command that a launcher item launches?





I'm not sure what commands are issued when trying to launch a program from the dash. How can I determine this and modify the commands of these short cuts?



For example, I would like to change the command to launch skype from:



skype



to



LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype


I'm not sure which command is issued when I click on the icon in the dash and I'm not sure how I would change it. Changing it using gnome menu editor does not seem to have any effect.



While I couldn't find the shortcuts, we can use the .local/share/applications folder.




You can create a file this way:



gedit ~/.local/share/applications/myskype.desktop  


Then paste something like this into it:




[Desktop Entry]
Version=1.0

Name=My Skype
Exec=env LD_PRELOAD="/usr/lib32/libv4l/v4l1compat.so" skype
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=skype
Categories=GNOME;GTK;Network;
StartupWMClass=Skype
StartupNotify=true
X-Ayatana-Desktop-Shortcuts=NewWindow;


[NewWindow Shortcut Group]
Name=Open a New Window
Exec=env LD_PRELOAD="/usr/lib32/libv4l/v4l1compat.so" skype
TargetEnvironment=Unity


Save and exit.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...