Bug 30721 - mgaonline - allow it to persist in desktop panel and add green icon to indicate no updates
Summary: mgaonline - allow it to persist in desktop panel and add green icon to indica...
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-07 15:24 CEST by Edward
Modified: 2022-08-19 23:39 CEST (History)
3 users (show)

See Also:
Source RPM: mgaonline-3.31-3.mga9.src.rpm
CVE:
Status comment:


Attachments
Persistent Fedora update icon (red cube) (2.78 KB, image/png)
2022-08-15 01:19 CEST, Edward
Details
Persistent Tumbleweed update icon (check-mark inside circle) (2.99 KB, image/png)
2022-08-15 01:20 CEST, Edward
Details
Fedora 35 Plasma system up to date (leftmost icon) (4.17 KB, image/png)
2022-08-15 06:02 CEST, sturmvogel
Details
Xfce desktop Tumbleweed update icon (turns into a gear when there are updates) (2.77 KB, image/png)
2022-08-15 22:06 CEST, Edward
Details
Xfce Fedora Rawhide update (icon turns into a solid cube) (2.52 KB, image/png)
2022-08-15 22:47 CEST, Edward
Details
Screenshot showing "no updates available" icon. (525.17 KB, image/png)
2022-08-16 02:24 CEST, Dave Hodgins
Details

Description Edward 2022-08-07 15:24:32 CEST
Description of problem:

This is an enhancement request for mgaonline. As referenced at https://bugs.mageia.org/show_bug.cgi?id=30720#c2 mgaonline did not launch after mga8 was installed in a VirtualBox and was updated to Cauldron.

I would like to recommend that the applet persist in the desktop panel, or have an option to make it persist and also provide a green icon to indicate no updates are available.

Version-Release number of selected component (if applicable):

3.31-3
Comment 1 sturmvogel 2022-08-07 16:01:54 CEST
I would say this one is INVALID as this function is already implemented. This function is dependent on the used desktop environment. Stripped down DEs like LXDE and other don't offer this functionality. But full grown DEs like Plasma have this since ages...
Comment 2 Dave Hodgins 2022-08-07 19:21:17 CEST
Note that the icon may be hidden when there are no updates available.
In plasma, configure the system tray to always show mgaapplet in the entries.

CC: (none) => davidwhodgins

Comment 3 Edward 2022-08-07 19:58:24 CEST
My experience is that it remains hidden if there are no updates. I have since been noticing HDD activity five minutes after logging in, so that may be mgaonline running as it should, but there was that one time (above comment) when it apparently ran butremained hidden (MATE desktop), yet there were updates after I checked.

There were issues I encountered with Plasma in the past (before using Mageia), so I no longer use that desktop.
Comment 4 Morgan Leijström 2022-08-08 10:48:19 CEST
(In reply to Edward from comment #3)
> My experience is that it remains hidden if there are no updates.

That is apparently normal, probably depending on desktop.
You may ask on a mate forum, for advice


I agree it is best to always have it visible so you see your system is updated.
Automatically hiding it is a feature (that i dont personally like, but some do)


> there was that one time (above comment) when it apparently ran but
> remained hidden (MATE desktop), yet there were updates after I checked.

Could just be that an update got available on your mirror between those two times.

CC: (none) => fri

Comment 5 Edward 2022-08-08 15:35:31 CEST
(In reply to Morgan Leijström from comment #4)

> Could just be that an update got available on your mirror between those two
> times.

Very possible. 

Since then, mgaonline has worked perfectly with the MATE desktop. It's showing updates are available right now.  :)


Having it persistent in the desktop panel and displaying green (when fully-updated) would be positive.
Comment 6 Lewis Smith 2022-08-10 21:50:49 CEST
I agree with this last comment; I have an idea that other distributions do something similar. OTOH "No news [nothing shown] is Good news".

I am tempted to pass this on to the mageiatools people, but would like the opinion of others as to whether it should be technically possible. It might even be easy to implement.

CC: (none) => lewyssmith

Comment 7 sturmvogel 2022-08-10 22:07:13 CEST
I'm using Tumbleweed (real machine) and Fedora 35 (VB), and non of them show the update notification permanently. The update notification only shows up when an update is available.

But as already said, with a mature and full grown desktop environment like Plasma you can make this icon permanent shown in the taskbar even if there is no update available. 
Most other desktop environments are so extremely stripped down that they don't even give you the possibility to set such behaviour. I would be surprised if there would be an easy fix for all DEs by our devs....
Comment 8 Lewis Smith 2022-08-10 22:26:45 CEST
Your evidence for other big name system behaviour is a powerful hammer!
My distant memory was of a big tick (system up-to-date) in perhaps LMDE.

This still looks a reasonable enhancement request, which the devs can turn down WONTFIX if they see it thus. It seems better that they make a decision, rather than us. It simply may be too much pain with non-Plasma desktops.

Assignee: bugsquad => mageiatools

Comment 9 Morgan Leijström 2022-08-10 23:00:21 CEST
(In reply to sturmvogel from comment #7)
> I would be
> surprised if there would be an easy fix for all DEs by our devs....

It apprently can show different icons when active/visible.

So maybe a workaround would be for it so say to the DE that it is active/visible, but select to show a green icon.
Comment 10 Dave Hodgins 2022-08-10 23:23:48 CEST
It's currently a blue circle with a checkmark if there are no updates.

In the past I found there was a problem with some desktop environments, such
that if they were installed the icon would only show if there were updates
available, even if the currently running desktop environment normally worked.
I don't remember now which desktop environments being installed caused it not
to show. I should probably have opened a bug report at the time, but didn't
really have enough info for it to be useful.
Comment 11 Morgan Leijström 2022-08-11 12:34:18 CEST
In plasma, the systray program items can be configured to show, not show, or "show if relevant".

Some DE only show icons if the program say it have something "relevant", and the problem is that most users think it is relevant to see system is updated (we can not directly see if mgaapllet is not running or not if it is invisible).

My proposal is to be able to configure mgaapplet to always say it is "relevant".
Comment 12 Lewis Smith 2022-08-14 21:35:41 CEST
> My proposal is to be able to configure mgaapplet to always say
> it is "relevant"
Why 'configure', rather than just 'change'? Would any user complain if he sees a new 'up-to-date' icon in Systray? Most other icons there are permanent.
Comment 13 sturmvogel 2022-08-14 22:06:18 CEST
I disagree. I don't need icons in Systray which doesn't tell me anything usefull or are not needed permanently. I hide all unecessary icons and only want to be notified if there is something relevant. That my system is "up-to-date" is not relevant for me but that "there-are-updates-available" is.
The only permanent visible icons in my systray are volume and networkmanager.
Comment 14 Frédéric "LpSolit" Buclin 2022-08-14 23:49:22 CEST
(In reply to Lewis Smith from comment #12)
> Why 'configure', rather than just 'change'? Would any user complain if he
> sees a new 'up-to-date' icon in Systray? Most other icons there are
> permanent.

I would complain, yes. I don't want useless icons in the taskbar, because this means less free space for opened applications. I agree with sturmvogel that an "up-to-date" icon is irrelevant.
Comment 15 Edward 2022-08-15 01:18:27 CEST
(In reply to Dave Hodgins from comment #10)
> It's currently a blue circle with a check-mark if there are no updates.

Since I have been using Mageia (late 2021), using the LXDE, LXQt and Xfce desktops, I have never seen a blue icon with a check-mark in it with any of these desktops, as the icon doesn't display / disappears, as the case may be. 

If it is persistent with one desktop in particular, then there ought to be consistency among all of them.


(In reply to sturmvogel from comment #7)
> I'm using Tumbleweed (real machine) and Fedora 35 (VB), and non of them show
> the update notification permanently. The update notification only shows up
> when an update is available.

I'm also running Tumbleweed and Fedora Rawhide as VirtualBoxes, Xfce desktop with both. Their respective update icons are persistent after updating, here. See attached.
Comment 16 Edward 2022-08-15 01:19:22 CEST
Created attachment 13358 [details]
Persistent Fedora update icon (red cube)
Comment 17 Edward 2022-08-15 01:20:04 CEST
Created attachment 13359 [details]
Persistent Tumbleweed update icon (check-mark inside circle)
Comment 18 sturmvogel 2022-08-15 05:43:36 CEST
Regarding comment 16 and comment 17. Thats not a standard Plasma configuration which you show us in these two pictures. I don't even know from which desktop environment these picons should be. Tumbleweed Plasma has a completely different icon (not shown permnanently) and Fedora 35 Plasma also not shown permanently.
Comment 19 sturmvogel 2022-08-15 06:02:06 CEST
Created attachment 13360 [details]
Fedora 35 Plasma system up to date (leftmost icon)

Btw, the picture from comment 17 is not even the updater icon. It is the dnfdragora icon (which is not an update notifier). The update icon under Fedora 35 Plasma looks like this if no update is available (system up to date). Leftmost Icon (which i explicitly enabled to show for this picture as this is no standard Plasma Fedora 35 setting). If an update is available, this icon shows a red dot.
Comment 20 sturmvogel 2022-08-15 06:19:43 CEST
(In reply to sturmvogel from comment #18)
> I don't even know
> from which desktop environment these picons should be. 

Better let it say this way: You don't say which dektop environment these icons are from.

Definitly not from a untinkered Plasma installation (neither Tumbleweed nor Fedora 35).
Comment 21 Edward 2022-08-15 12:38:37 CEST
From my Comment 15:

> I'm also running Tumbleweed and Fedora Rawhide as VirtualBoxes, Xfce desktop
> with both. Their respective update icons are persistent after updating,
> here. See attached.


(In reply to sturmvogel from comment #19)
> Created attachment 13360 [details]
> Fedora 35 Plasma system up to date (leftmost icon)
> 
> Btw, the picture from comment 17 is not even the updater icon. It is the
> dnfdragora icon (which is not an update notifier). The update icon under
> Fedora 35 Plasma looks like this if no update is available (system up to
> date). Leftmost Icon (which i explicitly enabled to show for this picture as
> this is no standard Plasma Fedora 35 setting). If an update is available,
> this icon shows a red dot.

The Fedora icon image I attached is dnfdragora and it continuously displays like that if there are no updates, or while it is checking for updates. If there are any updates, the icon then changes to a solid red (filled-in) cube.

The icons Fedora is using for it, are clearly different between the desktop environments.
Comment 22 Edward 2022-08-15 22:06:34 CEST
Created attachment 13361 [details]
Xfce desktop Tumbleweed update icon (turns into a gear when there are updates)
Comment 23 Edward 2022-08-15 22:47:09 CEST
Created attachment 13362 [details]
Xfce Fedora Rawhide update (icon turns into a solid cube)
Comment 24 Dave Hodgins 2022-08-15 22:50:03 CEST
Other distributions are not relevant to Mageia. The icons that are used by
mgaapplet can be viewed using any svg viewer with ...
$ ll /usr/share/icons/hicolor/scalable/actions/mgaonline*
-rw-r--r-- 1 root root 8809 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-bugfix.svg
-rw-r--r-- 1 root root 8718 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-bundle.svg
-rw-r--r-- 1 root root 7403 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-busy.svg
-rw-r--r-- 1 root root 6459 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-disabled.svg
-rw-r--r-- 1 root root 6468 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-disconnect.svg
-rw-r--r-- 1 root root 8200 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-noconf.svg
-rw-r--r-- 1 root root 6501 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-okay.svg
-rw-r--r-- 1 root root 9088 Jan  4  2021 /usr/share/icons/hicolor/scalable/actions/mgaonline-updates.svg

Normally mgaonline-okay.svg is displayed when there are no updates,
mgaonline-busy.svg when checking for updates and mgaonline-updates.svg when
there are updates available.

Not all desktop environments handle systray icons the same way, which is
usually intentional and may result in only showing the icon when there is
action required.
Comment 25 Edward 2022-08-15 23:08:00 CEST
Thank you for providing the path names. The only mgaonline icons that are seen with the LXDE, LXQt and Xfce desktops, are mgaonline-updates and mgaonline-busy.
Comment 26 Dave Hodgins 2022-08-15 23:49:54 CEST
Please create a new user. Log out, then log in as the new user using xfce.
In my tests, mgaapplet does display the icon indicating no updates available.
Comment 27 Edward 2022-08-16 01:41:07 CEST
Using Xfce, new account was added, system rebooted. Five minutes after it came up, there was HDD activity (checking for updates), the icon did not appear in the panel at all.

When I installed Mageia 8, I used only the LXQt desktop up until recently, when I installed Xfce.
Comment 28 Edward 2022-08-16 01:46:23 CEST
(In reply to Edward from comment #27)
> Using Xfce, new account was added, system rebooted. Five minutes after it
> came up, there was HDD activity (checking for updates), the icon did not
> appear in the panel at all.
> 
> When I installed Mageia 8, I used only the LXQt desktop up until recently,
> when I installed Xfce.

This was done on Mageia 8, host OS. Still no difference in behavior with Cauldron.
Comment 29 Dave Hodgins 2022-08-16 02:24:19 CEST
Created attachment 13363 [details]
Screenshot showing "no updates available" icon.

The attached screenshot shows what I see in a new user's xfce screen with
no updates available.
Comment 30 Edward 2022-08-16 02:45:08 CEST
Thank you for uploading that. I have never seen that icon on either of my Mageia 8 installs, or Cauldron virtual machines.

IIRC, I used the Mageia 8 net installer to install LXQt, as LXQt was not on the Classic installer. 

Could the original install of LXQt, be causing the current behavior of mgaonline that I'm seeing?
Comment 31 Edward 2022-08-16 02:53:51 CEST
I currently have two Mageia Cauldron VirtualBoxes, MATE desktop in one, Xfce in the other. Both were installed using the Mageia 8 Classic installer, then upgraded to Cauldron. 

Same behavior as with Mageia 8 on the hosts, appears when there are updates, disappears at reboot/restart or if I manually select it to check for updates and there are none.

Is the behavior possibly related to Mageia 8?
Comment 32 Dave Hodgins 2022-08-16 05:05:40 CEST
I'm pretty sure it could be caused by lxqt. Try just installing one or more of
the three main desktop environments, plasma, and/or gnome, and/or xfce4, without
any other desktop environments. Those three environments are the ones Mageia
produces live iso images for, and from what I've seen, most people use.
Comment 33 Dave Hodgins 2022-08-16 05:09:08 CEST
I Just read comment 31. If you're seeing it without lxqt, then that's not the
cause, and I have no idea why you're seeing it. I did have that problem at
one point in the past on one install, but that disk drive failed after a
lightning strike and I never figured out what I had installed or configured
that was triggering the behaviour.
Comment 34 Lewis Smith 2022-08-16 09:48:31 CEST
This is getting out of hand, too much hot air over a small matter.
Personally I happily accept - even agree with - comment 13 (sturmvogel), comment 14 (Frédéric), who justify "Don't want it". I stand corrected.

Can we agree that some users would like it, others not?

In an ideal world, this small functionality would be user configurable; and there even exists a suitable place to add it:
 MCC - Manage Software - Configure Update Frequency
Just one more tick-box with a suitable caption like "Always show up-to-date icon" - or conversely, "Hide up-to-date icon".
As such, it remains a valid 'enhancement request'.
This would have repercussions for the MCC manual, and all its translations.
Comment 35 Dave Hodgins 2022-08-19 23:39:23 CEST
Closing as works for me.

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


Note You need to log in before you can comment on or make changes to this bug.