[FIX] AutoKey (GTK) does not show in the panel in Ubuntu 12.04

Bug #970581 reported by Dylan Taylor
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
autokey (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

By default, AutoKey does not work with Ubuntu 12.04 because it is not present in the Unity Panel whitelist. By default, the Unity panel whilelist is set to ['JavaEmbeddedFrame', 'Wine', 'Update-notifier']. In order for certain applications, such as Desura and AutoKey to work properly, they need to be added to this whitelist, otherwise they will not function properly at all. The whitelist can be retrieved using gsettings get com.canonical.Unity.Panel systray-whitelist, reset to it's default value with gsettings reset com.canonical.Unity.Panel systray-whitelist, and set using gsettings set com.canonical.Unity.Panel systray-whitelist. Because this application doesn't provide any functionality at all without system tray functionality, it is necessary to manually append 'Autokey' to the whitelist. This can be fixed by modifying the package to update the whitelist on installation time to append the necessary value to the whitelist. Just running gsettings set com.canonical.Unity.Panel systray-whitelist ['Autokey'] fixes the problem with Autokey, but causes issues with other programs. The issue can be resolved by running a single command I wrote upon installation, which checks if Autokey is already in the panel whitelist and adds it if it isn't. It may also be worth running the command upon execution of Autokey in case the whitelist has been modified by another program and Autokey has been removed. I attached a batch script to do this as a patch, although the command is as follows:
if grep -q 'Autokey' <(echo `gsettings get com.canonical.Unity.Panel systray-whitelist`); then echo "'Autokey' exists in Unity panel whitelist. Nothing to do here."; else echo "Adding 'Autokey' to Unity panel whitelist." && gsettings set com.canonical.Unity.Panel systray-whitelist "`echo \`gsettings get com.canonical.Unity.Panel systray-whitelist | tr -d ]\`,\'Autokey\']`"; fi

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: autokey-gtk 0.71.2-1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0-0ubuntu2
Architecture: amd64
Date: Sun Apr 1 00:03:17 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: autokey
UpgradeStatus: Upgraded to precise on 2012-03-24 (8 days ago)

Revision history for this message
Dylan Taylor (dylanmtaylor) wrote :
summary: - [Possible Fix] AutoKey (GTK) is not useable by default in Ubuntu 12.04
+ [FIX] AutoKey (GTK) is not useable by default in Ubuntu 12.04
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Bash script to detect whether Autokey is in the whitelist and add it if it isn't." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [FIX] AutoKey (GTK) is not useable by default in Ubuntu 12.04

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autokey (Ubuntu):
status: New → Confirmed
Luke Faraone (lfaraone)
Changed in autokey (Ubuntu):
importance: Undecided → Low
Revision history for this message
Luke Faraone (lfaraone) wrote :

The package can still be started with `autokey-gtk -c`.

Changed in autokey (Ubuntu):
importance: Low → High
importance: High → Medium
summary: - [FIX] AutoKey (GTK) is not useable by default in Ubuntu 12.04
+ [FIX] AutoKey (GTK) does not show in the panel in Ubuntu 12.04
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.