Bug 465251 - "Leave" menu item is not persistent when switching between X11 and Wayland sessions
Summary: "Leave" menu item is not persistent when switching between X11 and Wayland se...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 03:28 UTC by Vladimir Yerilov
Modified: 2023-02-21 18:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yerilov 2023-02-04 03:28:31 UTC
SUMMARY
***
Log out desktop context menu option is gone after closing session.
***


STEPS TO REPRODUCE
1. Right-click on desktop, select menu item to configure Desktop settings
2. Go to mouse action pane, hit gear for editing context menu options, tick log out item to enable it
3. Log out / reboot using any method, log in again, press mouse right button when hovering cursor over desktop

OBSERVED RESULT
No log out menu item

EXPECTED RESULT
Once enabled, log out menu item should not disappear

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Any fresh installed / LiveCD since Plasma 5.26
(available in About System)
KDE Plasma Version: 5.26 and up
KDE Frameworks Version: 5.102
Qt Version: 5.15

ADDITIONAL INFORMATION
I noticed it when I was playing with Wayland session on Kubuntu and Neon Unstable in late 2022, checked in January 2023 - the issue was still there.
Comment 1 Vladimir Yerilov 2023-02-05 02:13:20 UTC
One thing I forgeot to mention: I noticed this in Manjaro as well.
Comment 2 Fushan Wen 2023-02-05 03:14:25 UTC
Cannot reproduce. Perhaps it's fixed in 5.27.
Comment 3 Nate Graham 2023-02-06 22:42:23 UTC
> log out menu item
Did you mean the "Leave…" menu item? There is no "log out" menu item. Can you attach a screenshot that shows the config window where you add it?

When I add the "Leave…" menu item and reboot, it's still there.
Comment 4 Vladimir Yerilov 2023-02-07 06:47:02 UTC
(In reply to Nate Graham from comment #3)
> > log out menu item
> Did you mean the "Leave…" menu item? There is no "log out" menu item. Can
> you attach a screenshot that shows the config window where you add it?
> 
> When I add the "Leave…" menu item and reboot, it's still there.

Yeah, sorry, I meant "Leave...", of course. I forgot what it used to be in English.

For now I cannot test if it is fixed because the latest Neon Unstable build is flawed with startplasma-x11 failure on boot, so I can't get to the graphical interface at all. If that works on your side, I hope it's fixed then.
I just need to make a stress on the fact that in order to check it one needs a LiveCD system, not a system installed before 5.26 was rolled out, because on my old Manjaro install this option works as expected, but any fresh ISO produced the result I reported here.
Comment 5 Vladimir Yerilov 2023-02-16 03:51:19 UTC
So I checked it once again using openSUSE Tumbleweed VM, and was unable to reproduce the issue.
However, it still kinda exists:
1. Boot Live media, it starts X session by default.
2. Add this menu item, log out.
3. Change session to Wayland on SDDM greeter screen, log in.
4. Observe no menu item, add it.
5. Now it's there in both X and Wayland sessions.

To sum up, it seems like X and Wayland sessions have separate lists (sets) of desktop menu items and both need a manual intervention to display a new item.
Comment 6 Nate Graham 2023-02-17 17:15:12 UTC
Can you file a new bug report for that?
Comment 7 Nate Graham 2023-02-17 17:15:35 UTC
Oh sorry, that comment was intended for something else.
Comment 8 Nate Graham 2023-02-17 17:21:30 UTC
Does it affect other menu items in the customizable context menu? Or just the "Leave…" menu item?
Comment 9 Vladimir Yerilov 2023-02-18 16:18:36 UTC
>>Or just the "Leave…" menu item?
Even more strange, not only it does not affect other options, once "Leave..." item has been added in both sessions, it starts to (dis)appear in both instantly as expected (as per user settings). So only the first encounter with this preference is flawed if switching to another session type as described above.
Comment 10 Nate Graham 2023-02-21 18:24:43 UTC
I can reproduce that. How bizarre. I'll try to carve out some time to investigate it more fully and fix it sometime soon.