Comment 2 for bug 1069460

Revision history for this message
Mezzo (mezzoman) wrote :

Interestingly, if you make a .desktop file that contains the chromium-browser --app command and attempt to drag/pin it to the dockbar, you get a different traceback like this:

| Traceback (most recent call last):
ERROR | 2015-03-08 20:14:51,541 | File "/usr/lib/pymodules/python2.7/dockbarx/dockbar.py", line 124, in do_drag_data_received
ERROR | 2015-03-08 20:14:51,541 | self.dockbar_r().launcher_dropped(path, "after")
ERROR | 2015-03-08 20:14:51,542 | File "/usr/lib/pymodules/python2.7/dockbarx/dockbar.py", line 1145, in launcher_dropped
ERROR | 2015-03-08 20:14:51,542 | app = cmd.split("--app=")[-1][:-1].translate(None,"\"")
ERROR | 2015-03-08 20:14:51,542 | TypeError: translate() takes exactly one argument (2 given)

To fix this, you simply remove "None" from line 1145, and then you can pin chromium apps to the dockbar if you have created a .desktop file for them (I created mine in /usr/share/applications/) and explicitly named the Icon in there with a line like this:

Icon=thunderbird

That however, does not solve the problem above, where after it launches, it fails to stay "launched" because it still can't parse the icon string for some reason.