hp-systray icon does nothing under KDE
Bug #857929 reported by
doctordruidphd
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Description: Ubuntu oneiric (development branch)
Release: 11.10
64-bit
apt-cache policy hplip
hplip:
Installed: 3.11.7-1ubuntu2
Candidate: 3.11.7-1ubuntu2
Version table:
*** 3.11.7-1ubuntu2 0
500 http://
100 /var/lib/
Usually clicking the hp-systray icon brings up the hp-toolbox application.
The problem is that now neither right nor left clicking on the icon brings up anything.
What it does do is start another hp-systray user process.
hp-toolbox application works properly if started from the command line.
Might also be a python (pygtk?) problem, not sure how to determine that.
Related branches
summary: |
- hp-systray icon does nothing + hp-systray icon does nothing under KDE |
Changed in hplip (Ubuntu): | |
status: | Triaged → In Progress |
Changed in hplip (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Seems that the only solution is to port hp-systray to be an indicator. Problem is that it is a Python program with Qt GUI, automatic selector between Qt3 and Qt4, a D-Bus server for notifications and fax jobs to pop up hp-sendfax, and the GUI is one thread in a multi-threaded program. The only thing which does not work is the icon. It shows empty menus on clicking and sometimes it does not appear at all. All the D-Bus services for notifications and fax jobs work perfectly.
agateau, tedg, any further help is welcome.
Here is our IRC discussion on #ubuntu-desktop on Freenode on Sep 26, 2001:
<tkamppeter> Anyone of the desktop experts, rodrigo_ seb128, pitti, has an idea about what is happening in bug 857929? It is about the systray icon of HPLIP not working (it should be whitelisted). For me it is even worse, for me the icon does not appear at all. /launchpad. net/bugs/ 857929 sni-qt. conf python2. 7/dist- packages/ gtk-2.0/ gtk/__init_ _.py: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK set_interactive(1)
<ubot2> Launchpad bug 857929 in hplip "hp-systray icon does nothing" [Undecided,New] https:/
<seb128> tkamppeter, do you have sni-qt installed?
<seb128> tkamppeter, we moved away from using the whitelist for qt application to use sni-qt which transform qt systray icons to indicators
<didrocks> tkamppeter: sni-qt should take your systray and convert to an indicator and show it for you
<tkamppeter> seb128, it is installed. How do I make it applying to hp-systray?
<didrocks> tkamppeter: it should appear without the need to do anything
<didrocks> tkamppeter: you can turn some debug on: edit /etc/xdg/
<didrocks> then add:
<didrocks> [general]
<didrocks> debug=1
<didrocks> run hplip and send to agateau the output
<tkamppeter> didrocks, first, I have added "hp-systray=1" to the file, this brought me on par with the bug, I get the icon and not the menus. Now I will try the debug mode ...
<didrocks> tkamppeter: please remove hp-systray=1 to the file, this is not needed
<didrocks> tkamppeter: when you click on the icon, there is a menu showing normally, isn't it?
<tkamppeter> When I restarted hp-systray, already before adding the debug mode, I got a message on the terminal: /usr/lib/
<tkamppeter> didrocks, now I will try debug mode and hp-systray removed.
<didrocks> hum? it's using gtk, not Qt?
<tkamppeter> didrocks, I am wondering, too.
<tkamppeter> Now I have restarted hp-systray again. Got an icon again, and empty menus when clicking.
<tkamppeter> I got also this GTK error message again.
<tkamppeter> didrocks, ^^
<didrocks> tkamppeter: try at least to know if it's using Qt or Gtk (try ldd the binary)
<tkamppeter> didrocks, it is a Python program, I cannot ldd that.
<didrocks> ah, ok, does it import Qt or something like that?
<didrocks> tkamppeter: open it then and look if there are some import gtk or import Qt
<tkamppeter> didrocks, I have grepped all .py files in /usr/share/hplip and subdirectories for GTK. There are three which use the string gtk or GTK somewhere.
<didrocks> tkamppeter: so seems you are using GTK. it should have been converted as an indicator then
<didrocks> tkamppeter: well, someone should have done this w...