It appears difficult to customize Ubuntu’s Unity bar in general and in my case, after installing the Scrivener .deb (1.0.1), the logo showed up only as a grey icon in the Launcher. Below is a fix to add a custom Scrivener launcher to Unity (or any app for that matter).
-
Make sure you have Scrivener’s logo saved somewhere on your computer (e.g. /home/youruser/scriv.png)
-
Edit the launcher script (note the uppder case S)
sudo vim /usr/share/applications/Scrivener.desktop
-
You will see the current launcher code:
[Desktop Entry]
Encoding=UTF-8
Name=scrivener
Type=Application
Exec=/usr/bin/Scrivener
Terminal=false
Categories=Application;Office;
- Replace everything with the following commands, remember to update youruser and location of Scrivener logo to where you saved it)
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_GB]=/home/youruser/scriv.png
Name[en_GB]=Scrivener
Exec=/usr/bin/Scrivener
Name=Scrivener
Categories=Application;Office;
Icon=/home/youruser/scriv.png
-
Save the file and exit.
-
Open the Launcher, type Scrivener and you will see the new icon show up. Drag it unto the Unity bar (screenshot attached) and you are done.