Fixing “Docky crashes on suspend or unplug” in Ubuntu 14.04

Reading Time: 2 minutes

in short

download and install this deb file; or do it yourself in just seven lines (see below)! :)

intro

On Ubuntu 14.04, my docky crashes extremely often (on any power status changes — suspend, disconnecting from the charger, etc.).

The fix has been known for a while, but after several months and no new Docky package (perhaps it is no longer maintained?), I decided to dig in and figure out how to fix this.

This time I googled it, and someone else had written up how to apply the fix to source code, build, and re-install. Turns out to only take a handful of lines! Here, I’m documenting with pictures.

Basically, we apply the one-liner fix using the “classic” instructions here How to download, modify, build and install a Debian source package? .

Ready?

Fixing Docky

Let’s get the source and edit the file “Docky.Services/Docky.Services/SystemService.cs”, as described in “Comment 2 for bug 1309706“:

For me, the fix was on line 281. Change

to

See pictures below.

Before

dockysrc

After

dockysrc-fixed

Build it~

This last step is to update the package number. I don’t know anything about this, but it auto-inserted a new package number so I just wrote a quick comment and called it good.

dockysrc-dch

Whoo! That’s it :)

Deb File

Here’s my file: https://drive.google.com/open?id=0B9r0HZeoMbmgVDhubWxFM0doMms

and its SHA sum follows, although obviously just doing the seven command-line steps above yourself is easy and way more secure…

social medialulz

facebooktwittergoogle_plusredditpinterestmail

Leave a Reply

Your email address will not be published. Required fields are marked *