HPLIP - No system tray detected on this system (Bug #1453303)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

HPLIP - No system tray detected on this system (Bug #1453303)

Ian Bruntlett
Hi,

Is anyone else experiencing the above error message on Ubuntu 20.04.1 LTS when using the Hewlett Packard hplip package?

The problem is that the code in question ( usr/share/hplip/ui5/systemtray.py ) hard codes a value for the system to wait for the system tray to be available. This is a classic example of a race condition error. To mitigate this, I've suggested in this bug report that a shell variable be available to override that hardcoded value, if practical.

I have also suggested that, if a system tray is not detected, that the dialogue box that states that a system tray is not detected should have a "Retry" button which, if pressed, tries (again) to check for the presence of a system tray.

Compliments of the Season!


Ian

--
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Bob
Reply | Threaded
Open this post in threaded view
|

Re: HPLIP - No system tray detected on this system (Bug #1453303)

Bob
** Reply to message from Ian Bruntlett <[hidden email]> on Fri, 25 Dec
2020 19:13:33 +0000

> Hi,
>
> Is anyone else experiencing the above error message on Ubuntu 20.04.1 LTS
> when using the Hewlett Packard hplip package?

I am on 20.10 with the same problem.


> The problem is that the code in question (
> usr/share/hplip/ui5/systemtray.py ) hard codes a value for the system to
> wait for the system tray to be available. This is a classic example of a
> race condition error. To mitigate this, I've suggested in this bug report
> that a shell variable be available to override that hardcoded value, if
> practical.
>
> I have also suggested that, if a system tray is not detected, that the
> dialogue box that states that a system tray is not detected should have a
> "Retry" button which, if pressed, tries (again) to check for the presence
> of a system tray.
>
> Compliments of the Season!
>
>
> Ian

--
Robert Blair


Keep voting Democrat...  One day they will restrict your freedoms, restrict your history and restrict your safety.  All in the name of professional victims that don't understand the consequences of their ignorance.  -- Ronald Regan, 1987

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: HPLIP - No system tray detected on this system (Bug #1453303)

Peter Flynn
In reply to this post by Ian Bruntlett
On 25 December 2020 19:14:28 Ian Bruntlett <[hidden email]> wrote:
Hi,

Is anyone else experiencing the above error message on Ubuntu 20.04.1 LTS when using the Hewlett Packard hplip package?

Yes, it's a long-standing bug in all versions I have used which they appear unable or unwilling to fix. A system tray is a Windows thing, and while there are plenty of Linux WM equivalents, HP don't seem to be able to use them.

Peter


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: HPLIP - No system tray detected on this system (Bug #1453303)

Ian Bruntlett
Hi,

On Fri, 25 Dec 2020 at 19:50, Peter Flynn <[hidden email]> wrote:
Yes, it's a long-standing bug in all versions I have used which they appear unable or unwilling to fix. A system tray is a Windows thing, and while there are plenty of Linux WM equivalents, HP don't seem to be able to use them.
Made a little bit of progress. I don't think it is a bug in hplip...

I backed up my copy of /usr/share/hplip/ui5/systemtray.py and changed the relevant bit of code from:-
    i = 0
    while i < 60:
        if QSystemTrayIcon.isSystemTrayAvailable():
            break
        time.sleep(1.0)
        i += 1

To...
    i = 0
    while i < 600:
        if QSystemTrayIcon.isSystemTrayAvailable():
            break
        time.sleep(1.0)
        i += 1

And HPLIP *still* did not get access to the system tray.

Interestingly enough, while I was waiting for the above 10 minute wait for a system tray, I discovered that there were *three* instances of systemtray.py running!

$ pgrep -a systr
1795 /usr/bin/python3 /usr/bin/hp-systray -x
1908 /usr/bin/python3 /usr/bin/hp-systray -x
1909 /usr/bin/python3 /usr/bin/hp-systray -x

The plot thickens.

Any ideas?

TIA,



Ian

--
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: HPLIP - No system tray detected on this system (Bug #1453303)

Francis Grizzly Smit
In reply to this post by Peter Flynn

Gnome-Shell has a plugin for this, look at https://extensions.gnome.org/extension/1497/topicons-redux/  I think that's the plugin that's doing it it works fine for me, or you can use my plugin https://extensions.gnome.org/extension/1339/hplip-menu/ it will do most of what the hp-lip tray icon hp-systray does, like launch the hp manager it also launches the the cups print dialogs   etc and some more setup stuff

On 26/12/2020 06:48, Peter Flynn wrote:
On 25 December 2020 19:14:28 Ian Bruntlett [hidden email] wrote:
Hi,

Is anyone else experiencing the above error message on Ubuntu 20.04.1 LTS when using the Hewlett Packard hplip package?

Yes, it's a long-standing bug in all versions I have used which they appear unable or unwilling to fix. A system tray is a Windows thing, and while there are plenty of Linux WM equivalents, HP don't seem to be able to use them.

Peter


--
   .~.     In my life God comes first....
   /V\         but Linux is pretty high after that :-D
  /( )\    Francis (Grizzly) Smit
  ^^-^^    http://www.smit.id.au/

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users