Bug 29570

Summary: dnfdragora-updater don't show icon image in taskbar in Lxqt
Product: Mageia Reporter: Jose Manuel López <joselp>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: anaselli, lewyssmith
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dnfdragora-2.1.1-1.mga8.src.rpm CVE:
Status comment:
Attachments: Showing dnfdragora-update active Systray icon on LxQt

Description Jose Manuel López 2021-10-20 17:43:23 CEST
Description of problem:I have installed dnf and dnfdragora-updater in Lxqt environment, but dnfdragora-updater don't show icon image in taskbar.


Version-Release number of selected component (if applicable): Dndragora-updater and Mageia 8


How reproducible: Install dnfdragora-updater and see that don't show icon image in taskbar


Steps to Reproduce:
1. Install dnfdragora-updater
2. Open dnfdragora-updater
3. The application don't show icon image in taskbar
Comment 1 Lewis Smith 2021-10-20 19:45:44 CEST
Thank you for the report.
"This package provides the update notifier applet for dnfdragora"
rather implies a Systray icon.

You say this happens under LxQt; do you have any other desktop to try it?

Because I do not use DNF, nor do I want to mix it with RPM utilities, I cannot try this.

CC'ing Neal (prior to assigning).

Source RPM: dnfdragora-updater => dnfdragora-2.1.1-1.mga8.src.rpm
CC: (none) => lewyssmith, ngompa13

Angelo Naselli 2021-10-21 00:04:01 CEST

CC: (none) => anaselli

Comment 2 Angelo Naselli 2021-10-21 00:13:37 CEST
IIRC it should be seen if there are updates, though it depends on your configuration and unfortunately some desktops are not working with upstream pystray, will check if lxqt is one of them. 

BTW i install a virtual machine to test something when i don't want to break my system or adding things i don't daily use, just a suggestion ;)
Comment 3 Lewis Smith 2021-10-21 20:55:07 CEST
(In reply to Angelo Naselli from comment #2)
> IIRC it should be seen if there are updates, though it depends on your
> configuration and unfortunately some desktops are not working with upstream
> pystray, will check if lxqt is one of them. 
I shall risk installing dnfdragora-updater (without asking DNF to do anything), since I have many desktops to try with; & report back.
 
> BTW i install a virtual machine to test something when i don't want to break
> my system or adding things i don't daily use, just a suggestion ;)
Sensible enough. But with a 4Gb system & a slow AMD E1 processor, I steer clear of this!
Comment 4 Lewis Smith 2021-10-21 21:55:29 CEST
I installed dnfdragora (Qt) & the updater packages, and tried them briefly under various desktops. With very mixed results, except that dnfdragora never worked - but without any configuration of it; and something called dnfdaemon-system always ran, not always with the updater.

Sometimes dnfdragora-updater appeared in the 'ps' list, but its icon was not visible. I saw its Systray icon under LXDE, Plasma & Xfce; not Cinnamon, Gnome (no Systray anyway), LxQt, Mate. You could launch it manually from its menu entry if it was not running. Sometimes force-killing the moribund dnfgragora took the updater with it; I think this was only if you launched dnfdragora from the updater systray icon menu.

This actually needed more controlled & consistent testing than I was able to do; very time-consuming. Behaviour was too variable to quickly pin down.

Assigning this to Neal; if you want any more specific tests, ask. I shall stay CC'd for the moment.

CC: ngompa13 => (none)
Assignee: bugsquad => ngompa13

Comment 5 Jose Manuel López 2021-10-22 17:56:02 CEST
Hi!

This occurs on the LXQT desktop. Dnfdragora-updater runs correctly on this desktop, but the icon is not the same as in Plasma-KDE, but it does correspond to the one in the application.

In the rest of the desks I cannot confirm their behavior.

In Lxqt it appears in the system tray, but with the wrong icon. I think it is because it does not recognize or cannot find the application icon.
Comment 6 Lewis Smith 2021-10-23 20:40:00 CEST
Thanks for the feedback. A 'wrong' icon hardly matters, they are all arbitrary.

> This occurs on the LXQT desktop. Dnfdragora-updater runs correctly on this
> desktop, but the icon is not the same as in Plasma-KDE, but it does
> correspond to the one in the application.
> In Lxqt it appears in the system tray
This differs from the bug which says "don't show icon image in taskbar in Lxqt".
Hence changing the bug status.

@Neal, @Angelo
I realise that my testing was in ignorance of what *should* happen.
Angelo said comment 2 "it should be seen if there are updates", which I did not take into account. Only then, or always? Does its presence depend on having re-booted?
I am now under Xfce, re-booted; the Mageia icon shows there are updates, and the Dnfdragora-updater icon is also present in Systray. I will change to LxQt to see...

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 7 Lewis Smith 2021-10-23 20:50:39 CEST
Without re-booting, I logged out of Xfce & into LxQt. The Mageia 'updates available' icon was not initially visible in Systray (but has just appeared there after some time); but Dnfdragora-updater *is* there. At least under Xfce & Plasma, the icon was a red 3D box; here under LxQt it is a black square enclosing a '!'. This is unimportant: some applications do have different icons under different desktops.

So there remain things to clarify re expected behaviour. For the moment, the bug is not confirmed.
Comment 8 Jose Manuel López 2021-10-23 21:13:04 CEST
Yes, that's exactly what I mean, the icon is a black square. I understand that the icon should be the one that appears in both Plasma and Xfce because it is the one that looks like the one in the application.

Status: UNCONFIRMED => NEW
Ever confirmed: 0 => 1

Comment 9 Angelo Naselli 2021-10-24 18:54:12 CEST
hmm I'm not sure i've got it :) Unfortunately it isn't all managed like that, but dnfdragora is trying to make icon theme winning first, and libyui is going to work so too. Maybe lxqt has dnfdragora in its default theme... since fedora lxqt shipped it since the beginning. Certainly, dnfdragora doesn't provide that icon and package is not patched :)

Anyway in future to help debugging dnfdragora you could enable log and debug level from dnfdragora Options, so that either for dnfdragora or dnfdragora-update you could read log after something is not working as expected.

Concerning the update icon according to settings (dnfdragora options, system) updates are checked every 180 minutes. I too sometimes experienced that the icon is not shown soon after dnfdragora is started, so maybe it is shown after a desktop session change or reboot or 180 minutes (configurable), but this seems to be related to pystray upstream library.  

On comment #8 so can we close it?
Comment 10 Lewis Smith 2021-10-25 11:06:00 CEST
Created attachment 12961 [details]
Showing dnfdragora-update active Systray icon on LxQt

This little screenshot shows that the complaint as in the bug title is not true; which Jose admits - also that the applications works. This bug is just about the exact nature of the icon, which is really unimportant.

Agree with Angelo about closing this. His suggestions for monitoring the application are more relevant to the applications not working.
Comment 11 Lewis Smith 2021-10-25 11:08:24 CEST
Comment 9:
> On comment #8 so can we close it?
Doing.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 12 Angelo Naselli 2021-10-25 18:46:51 CEST
as said that icon is not shipped by dnfdragora itself :)
Comment 13 Angelo Naselli 2021-10-25 19:03:38 CEST
Ok found, if you look for lxqt settings you can find icon theme if you change that dnfdragora update icon change accordingly. So it's a lxqt choice to ship icon for dnfdragora too :)