AutoKey-GTK Won't Allow Deleting Node-Items

Bug #1217749 reported by Lonnie Lee Best
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
autokey (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I upgraded to Ubuntu 13.10 alpha from 13.04.

autokey-qt wouldn't launch, so I decided to try autokey-gtk. GTK version launches, but I can't delete items I add to my tree structure in the left pane. I can add scripts, phrases, and folders. I can rename them too, but I can't delete them.

I should also note that I run autokey-gtk as a "startup application" like this:
Super Key > type "startup applications" > add "autokey-gtk"

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: autokey-gtk 0.90.1-1.1
ProcVersionSignature: Ubuntu 3.11.0-4.9-generic 3.11.0-rc7
Uname: Linux 3.11.0-4-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.12.1-0ubuntu2
Architecture: amd64
Date: Wed Aug 28 02:54:35 2013
InstallationDate: Installed on 2013-08-03 (25 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: autokey
UpgradeStatus: Upgraded to saucy on 2013-08-28 (0 days ago)

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :
description: updated
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Interesting, in Ubuntu 13.04 I was using autokey-qt (which used json as a data-store for things you added to autokey). As I mentioned, autokey-qt won't launch for me in Ubuntu 13.10:
https://bugs.launchpad.net/ubuntu/+source/autokey/+bug/1217705

However, I see that autokey-gtk uses files and folders to store data (not a single JSON file). Both are pretty cool approaches in my opinion. I love JSON, but I also like how files and folders can map this same data in a way that can be retrieved easily (even if auto key isn't running) by navigating the file system.

Given that I've just realized these different approaches. I suspect my deletion problem in autokey-gtk is likely do to some permissions issue resulting from the fact that I'm launching autokey-gtk as a startup application (rather than manually launching it).

Are there changes that can be made to the package that would prevent this issue? In Ubuntu 13.04, I launched autokey-qt as a startup application, and it never had an issue deleting nodes from within its json file. So, one advantage to the json method is that you only have to worry about the permissions of one single file versus a recursive directory of many files and folders.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Could someone please confirm this bug? This remains an issue; you cannot delete a phrase from AutoKey-GTK's gui.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in autokey (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Whitman (alexwhitman) wrote :

This is affecting me as well. Running the service with verbose output shows:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autokey/gtkui/configwindow.py", line 1156, in on_delete_item
    refs.append(Gtk.TreeRowReference(theModel, path))
TypeError: function takes at most 0 arguments (2 given)

when trying to delete an item.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

There's been no progress on this issue in autokey-GTK. As a workaround, I've been deleting items from the file system in order to ultimately remove them from the user-interface.

The actual file location for these UI elements are located here for me:
/home/username/.config/autokey/data

You might want to backup that folder before manually deleting sub-folders or files.

I suspect this must be caused by some permissions misconfiguration during autokey-gtk's installation. I bet, behind the scenes, the UI is telling linux to delete those files (the ones I'm having to delete manually), but perhaps the UI doesn't have permission to delete them? No sure.

tags: added: trusty
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

After reading Alex's error. Perhaps there is some function that got updated, in a library that autokey-gtk uses where it now requires two parameters. The signature of that function has changed and that has broken backwards-compatibility with auto-key's codevwhich worked fine prior to Ubuntu 13.10.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

When I try to delete a phrase, AutoKey crashes. Unfortunately, the UI won't allow me to copy the crash report to my clipboard, so I made a screenshot:

http://neartalk.com/ss/2014-01-28_10:35:04.png

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

This screen shot shows the Traceback:

http://neartalk.com/ss/2014-01-28_10:39:26.png

Changed in autokey (Ubuntu):
importance: Undecided → High
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Hey, in the last few days (in Ubuntu 14.04) I've been able to delete thing via the GUI.

Someone seems to have fixed this. I'll report back if it becomes broken again (for me).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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