I'm trying to write a script to setup my desktop environment after a fresh install. One thing I can't figure out is how to pin/unpin items to the Unity Launcher from a bash script. Any ideas?
I'm trying to write a script to setup my desktop environment after a fresh install. One thing I can't figure out is how to pin/unpin items to the Unity Launcher from a bash script. Any ideas?
Use gsettings:
Gives you a list of what's on the launcher:
so you can do something like this in bash:
I tested and it works to add firefox to the launcher, however the icon doesn't display immediately. You'll have to log out/in or do a
unity --replace
command.Run the following command:
The
app-name.desktop
file would look something like this: