ThierryHFR / Big-Sur-StatusArea

macOS Big Sur "System Tray" look for Gnome Desktop
https://www.pling.com/p/1427290/
26 stars 4 forks source link

[Bug] The default "power mode" and "calendar events" indicators are not handled #95

Closed PS1Online closed 1 year ago

PS1Online commented 2 years ago

Using Gnome 42.5 with Xorg or Wayland under Ubuntu 22.04 LTS Desktop 64-bit, two default indicators are not handled and are the "power mode (balanced, power saver)" and "calendar events (e.g. Today: No events)". A .gif image will show exactly the problem.

Screencast from 24-05-2022 21 01 44

This is the extension configuration:

BigSur

Here is the list of my active plugins. Can you reproduce the problem?

Enabled exentions

I have isolated the problem. I have disabled the extensions one at a time. There is a problem between the following two extensions enabled together:

Conflicting extensions

I discovered the exact cause of the problem and then adopted the workaround:

simplescreenrecorder-2022-11-14_14 49 28

The solution to the problem is that your extension handles "power mode" and "calendar events" indicators. Is this bugfix applicable? If yes, how long will it take?

EDIT:

The "unmanaged menus" bug means that they must be managed (therefore with the icons visible as for all the other menus managed by the extension, unlike the bug where these icons are invisible), therefore with the possibility of being enabled or disabled (made to disappear) like any other managed menu from the extension.

It is not possible to be more detailed than this in describing the problem and what the related resolution should be.

ThierryHFR commented 2 years ago

Hi @PS1Online , Can you tell me if I have a problem with Xorg?

ThierryHFR commented 2 years ago

I tested on Ubuntu 22.04 64bits Wayland. I don't reproduce, please give me the list of your extensions !

blickers commented 2 years ago

Comfirmed under X11, Gnome 42, Ubuntu 22.04.

Here are all my enabled extensions: extensions.tar.gz

The "power mode (balanced, power saver)" and "calendar events (e.g. Today: No events)" are lost (actually hidden). They won't be shown on the top panel. But when you move the mouse cursor between those indicators, you will find a small gap, there if you press the mouse left button, the hidden "power mode (balanced, power saver)" menu pops out.

screenshot01

ThierryHFR commented 2 years ago

Hi @blickers, Thank you for your extensions! Unfortunately I don't reproduce your problem: Capture vidéo du 22-08-2022 10:53:23.webm

For info one of your extensions is not compatible: Capture d’écran du 2022-08-22 10-52-58

blickers commented 2 years ago

You need to click one of the indicator first (e.g. the volume icon), when the menu pops out, then move carefully between those indicator icons from left to right, form right to left (again and again...), and then, you will find the "hidden/lost" indicator of "power mode (balanced, power saver)", it's menu pops out! If you don't click, or you move too fast, you won't be able to find it.

blickers commented 2 years ago

Intresting. I tried to make a screen recording using OBS Studio. When I add screen recording (XSHM) in OBS, an icon of microphone appears at the place of the little gap. When I click this microphone icon, the "power mode (balanced, power saver)" menu pops out! You can try it.

ThierryHFR commented 2 years ago

I'm testing this evening!

Kertrix commented 2 years ago

Thanks! It would be nice if the power mode was in the same menu as the power percentage.

Kertrix commented 2 years ago

Hi again! For me, Just Perfection is causing this:

demonstration Good evening,

luca-martino commented 2 years ago

Same issue.

OS: Fedora release 36 (Thirty Six) x86_64 DE: GNOME 42.4

immagine

PS1Online commented 1 year ago

Forgive me for the extreme delay in responding, I've now updated the question to explain the bug fully and in detail. I hope this can help you to fix it.

PS1Online commented 1 year ago

@Ordissimo Hi, 7 months since I made the bug explanation complete and detailed. Have you viewed it?

natewind commented 1 year ago

Same issue, here’s the fix I use:

uuid="bigSur-StatusArea@ordissimo.com"
extension="$HOME/.local/share/gnome-shell/extensions/$uuid/extension.js"

aggregate_old='Main.panel.statusArea.aggregateMenu.container.hide();'
aggregate_new='Main.panel.statusArea.aggregateMenu.actor.hide();'

date_old='Main.panel.statusArea.dateMenu.container.hide();'
date_new='Main.panel.statusArea.dateMenu.actor.hide();'

sed -i -e "s|$aggregate_old|$aggregate_new|" "$extension"
sed -i -e "s|$date_old|$date_new|"           "$extension"

I’m too busy to make a pull request. @ThierryHFR, would you please change those 2 lines?

ThierryHFR commented 1 year ago
  • Ubuntu 22.04

    • GNOME 42

Same issue, here’s the fix I use:

uuid="bigSur-StatusArea@ordissimo.com"
extension="$HOME/.local/share/gnome-shell/extensions/$uuid/extension.js"

aggregate_old='Main.panel.statusArea.aggregateMenu.container.hide();'
aggregate_new='Main.panel.statusArea.aggregateMenu.actor.hide();'

date_old='Main.panel.statusArea.dateMenu.container.hide();'
date_new='Main.panel.statusArea.dateMenu.actor.hide();'

sed -i -e "s|$aggregate_old|$aggregate_new|" "$extension"
sed -i -e "s|$date_old|$date_new|"           "$extension"

I’m too busy to make a pull request. @ThierryHFR, would you please change those 2 lines?

Hi @natewind, Thanks for your contribution

natewind commented 11 months ago

@ThierryHFR, you released version 48 after this, but didn’t include the change. Is that intentional?

ThierryHFR commented 11 months ago

@ThierryHFR, you released version 48 after this, but didn’t include the change. Is that intentional?

No, that's a mistake on my part, I've just published version 49.

natewind commented 11 months ago

No, that's a mistake on my part, I've just published version 49.

Ok, thanks!

natewind commented 11 months ago

Sorry, I can’t find it:

image

ThierryHFR commented 11 months ago

Sorry, I can’t find it:

image

Wait, gnome validates!

Screenshot_2023-10-10-17-00-17-940_org mozilla firefox

natewind commented 11 months ago

Ah, ok, I didn’t know how it works :)

PS1Online commented 9 months ago

The solution to the problem is that your extension handles "power mode" and "calendar events" indicators.

This bugfix simply made the "power mode" and "calendar events" menus disappear, instead of making them actively available through the extension. I had reported the "unmanaged menus" bug, which meant that they had to be managed (therefore with the icons visible as for all the other menus managed by the extension, unlike the bug where these icons were invisible), therefore with the possibility of being enabled or disabled (made to disappear) like any other managed menu from the extension.

Ultimately, I don't consider the applied bugfix as a resolution but as the strengthening of a lack of management of these two menus.

I ask you to reopen the bug.