After updating to latest version QLE doesn't work

Bug #1283862 reported by GrouchyGaijin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QLE Unity Quicklist editor
Invalid
Undecided
Jacob Vlijm

Bug Description

I am running Ubuntu 12.04 32bit
I installed the latest build qle_2.1.2.1_1386.deb via the ppa LP-PPA-vlijm/qle/precise

The first time I launched QLE from the dash after the update the program did launch. I was able to make one edit to an existing quicklist then when I clicked save QLE froze.
In fact my entire system locked up and I needed to do a hard reboot.
After rebooting QLE still wouldn't work so I shutdown normally and then restarted the machine. QLE still won't launch.
I completely uninstalled QLE via Synaptec (including the configuration files). Retarted the machine, re-installed QLE and it will not do anything from the Dash.

If however I run:

[CODE]
$ /usr/bin/qle_quicklisteditor
[/CODE]

I get this:

[CODE]
Traceback (most recent call last):
  File "/usr/bin/qle_quicklisteditor", line 4044, in <module>
    MainWindow()
  File "/usr/bin/qle_quicklisteditor", line 47, in __init__
    self.prepare_environment()
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in prepare_environment
    for item in self.applications_tocheck_list]:
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in <listcomp>
    for item in self.applications_tocheck_list]:
TypeError: string indices must be integers
[/CODE]

This is a handy little program and I hope a fix can be found.

Thank you,

GG

Jacob Vlijm (vlijm)
Changed in jonb.homelauncher:
assignee: nobody → Jacob Vlijm (vlijm)
Revision history for this message
GrouchyGaijin (1pt1nq88tv-w3bd-8aho930n7s) wrote :

UPDATE
I had used QLE to edit a quicklist for a Chromium app (Google Calendar).
The Chromium generate desktop file was on my desktop and not in the usual location for launcher desktop files, if that matters.

I removed the Google Calendar App desktop file from the Ubuntu dock like thing on the left hand side of the screen and QLE began working again.

Revision history for this message
Jacob Vlijm (vlijm) wrote :

Dear GrouchyGaijin,

First of all, thank you for your report!
That does matter indeed! I was going to send you an edited version of the FileActions class to find out which of the .desktop files the editor could not handle and why. Indeed the editor assumes desktop files for Unity are in either /usr/share/applications or in /.local/share/applications. If not, it does see the mention in the launcher items list, but cannot find it in the editor's database, created on start up of the application.
This is an interesting occasion! I will write at least write some code to prevent that the application (or the system) crashes in such occasions.

Thank you once again!

Changed in jonb.homelauncher:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Jacob Vlijm (vlijm) wrote :

Dear GrouchyGaijin,

I looked into the occasion, and it turned out that I already had built in that launcheritems which are not in the database of /usr/share/applications and /.local/share/applications should not appear in the editor at all. My question is: did the Google Chrome desktop file appear in the list of launcher items in the editor? if so, could it be that you have multiple .desktop files of Google Calendar App?

Thanks in advance!

Changed in jonb.homelauncher:
importance: Medium → Undecided
Revision history for this message
GrouchyGaijin (1pt1nq88tv-w3bd-8aho930n7s) wrote :

Hello again,
I should say that usually the Chromium app shortcuts are covered by a Conky so I like to have access to them in the dock.

I looked and have a few shortcuts (.desktop files) from Chromium apps on the desktop and all of those seem to have a coorosponding .desktop file in /home/john/.local/share/applications/
The names of the Chromium app .desktop files are quite long ( chrome-ndhalihfegegiohmkbjokknlaoeidpdl-Default.desktop)
They all have similar commands of, for example, /usr/bin/chromium-browser --app-id=ndhalihfegegiohmkbjokknlaoeidpdl --profile-directory=Default

OK so, I was able to launch the Google Calendar app and while it was in the dock (on the left) I used QLE to add some items to the quick list. Then while Google Calendar was still showing in Plank (at the bottom of the screen) I locked the launcher to Plank as well.

Then QLE quit working. I followed the steps I outlined earlier and nowQLE works, even with the Google Calander app quick list in the launcher. The odd thing is the Google Calendar quick list is no longer seen by QEL.

See the screen shot at http://screencloud.net/v/2g4U

I suppose If I need to edit that quick list in the future I'll just do so manually :-)

Thank you for your help!! I really appreciate your super quick replies.

Revision history for this message
Jacob Vlijm (vlijm) wrote :

perfect! I guess it is some kind of coincidence that I do not fully understand right now :)
Thanks once again!
Jacob

Changed in jonb.homelauncher:
importance: Undecided → Low
importance: Low → Undecided
Jacob Vlijm (vlijm)
Changed in jonb.homelauncher:
status: In Progress → Incomplete
Revision history for this message
GrouchyGaijin (1pt1nq88tv-w3bd-8aho930n7s) wrote :

I am now running Ubuntu 14.04 and noticed today that I am getting the same error when I try to launch QLE.

 $ /usr/bin/qle_quicklisteditor
Traceback (most recent call last):
  File "/usr/bin/qle_quicklisteditor", line 4044, in <module>
    MainWindow()
  File "/usr/bin/qle_quicklisteditor", line 47, in __init__
    self.prepare_environment()
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in prepare_environment
    for item in self.applications_tocheck_list]:
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in <listcomp>
    for item in self.applications_tocheck_list]:
TypeError: string indices must be integers

What information do you need to make this a complete bug report?

GG

Revision history for this message
Jacob Vlijm (vlijm) wrote :

Thank you for your message! I will look into it (I have to refresh my memory :) ) Are you still using Conky? As a first temporary fix to get it running again, could you remove `~/.config/qle` ?

Revision history for this message
GrouchyGaijin (1pt1nq88tv-w3bd-8aho930n7s) wrote :

Hi Jacob,

I removed ~/.config/qle and then tried to launch QLE. I received the same error as mentioned above.
I have one instance of conky running. Killing Conky does not seem to have any effect.

$ qle_quicklisteditor
Traceback (most recent call last):
  File "/usr/bin/qle_quicklisteditor", line 4044, in <module>
    MainWindow()
  File "/usr/bin/qle_quicklisteditor", line 47, in __init__
    self.prepare_environment()
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in prepare_environment
    for item in self.applications_tocheck_list]:
  File "/usr/share/qlequicklisteditor/qle_fileactions.py", line 554, in <listcomp>
    for item in self.applications_tocheck_list]:
TypeError: string indices must be integers

Revision history for this message
Jacob Vlijm (vlijm) wrote :

Hi GrouchyGaijin,

My guess is there is some desktop file with an exception the editor (and I) did not count on. Just to check, but did you create launchers and store them in /.local/share/applications? I will probably post an edited version with a line to find out on which .desktop file the editor is choking. As said, I have to refresh my memory a bit and dive into the old version, while I am working on a new one.

Revision history for this message
GrouchyGaijin (1pt1nq88tv-w3bd-8aho930n7s) wrote :

Hi Jacob,

I found out what the problem was. When I went to edit a .desktop file that is in ~/.local/share/applications I found five jpeg images in the directory along with all of the .desktop files. How the jpegs got there I don't know. Undoubtedly, a slip of the finger at the terminal.

In any case, I removed the offending jpegs and your software once again works.

Thank you for the help and thanks again for making such a handy tool!

Revision history for this message
Jacob Vlijm (vlijm) wrote :

No problem! I am glad it worked out and you found the problem. Good to know by the way, there can allways be a situation like this and I will make the new version resitant to jpeg files :).

Jacob Vlijm (vlijm)
Changed in jonb.homelauncher:
status: Incomplete → Invalid
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.