Adding Scrivener logo icon to Ubuntu's Unity Bar

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).

  1. Make sure you have Scrivener’s logo saved somewhere on your computer (e.g. /home/youruser/scriv.png)

  2. Edit the launcher script (note the uppder case S)

    sudo vim /usr/share/applications/Scrivener.desktop

  3. 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;

  1. 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

  1. Save the file and exit.

  2. 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.
    scrivunity.jpg

I got the grey icon on the launcher bar upon install but just logging out and logging back in fixed it for me.