Bug 2252900

Summary: imsettings needs to be updated for cinnamon 6.0
Product: [Fedora] Fedora Reporter: Leif Liddy <leif.liddy>
Component: imsettingsAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: i18n-bugs, ngompa13, tagoh
Target Milestone: ---Flags: tagoh: mirror?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: imsettings-1.8.8-1.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-21 13:54:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leif Liddy 2023-12-05 07:00:46 UTC
I installed cinnamon 6.0 from the Fedora rawhide repo. So this version of cinnamon has (experimental) support for wayland. So when I log into a cinnamon wayland session, I see the following in ~/.cache/imsettings/log

....
DESKTOP: cinnamon-wayland-wayland (which looks a bit redundant w/ wayland listed twice)
GUESS_DESKTOP: $XDG_SESSION_TYPE
```

So there's two issues here:
1. I think imsettings (which is X11-orientated) should probably be ignoring cinnamon-wayland altogether which means adding this entry to none.conf

ie
/etc/X11/xinit/xinput.d/none.conf
....
IMSETTINGS_IGNORE_SESSION=GNOME,GNOME-wayland,KDE-wayland,cinnamon-wayland-wayland

2. Why is the value of DESKTOP cinnamon-wayland-wayland and not just cinnamon-wayland?

Here are the XDG-related variables and associated values from a cinnamon wayland session.

env | grep XDG
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=cinnamon-wayland
XDG_SESSION_TYPE=wayland
....

My guess is that imsettings is combining XDG_SESSION_DESKTOP with XDG_SESSION_TYPE to form cinnamon-wayland-wayland -- but I'm not sure. 

I'm basically looking for 
1. clarification on whether cinnamon wayland should be ignored by imsettings
2. whether or not the DESKTOP value should resolve to cinnamon-wayland-wayland vs just cinnamon-wayland.

Thanks

Reproducible: Always

Steps to Reproduce:
Install cinnamon 6.0 from the Fedora rawhide repo. 
Login to a cinnamon rawhide session

Comment 1 Neal Gompa 2023-12-05 07:56:48 UTC
> XDG_SESSION_DESKTOP=cinnamon-wayland

Upstream cinnamon should probably not add a suffix for wayland to this variable, since the session-type variable already tells you this information.

Comment 2 Leif Liddy 2023-12-05 15:39:31 UTC
Ok, I submitted an upstream bug report for that.
https://github.com/linuxmint/wayland/issues/6

Comment 3 Fedora Update System 2023-12-21 13:50:35 UTC
FEDORA-2023-9c5ccd93b0 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9c5ccd93b0

Comment 4 Fedora Update System 2023-12-21 13:54:10 UTC
FEDORA-2023-9c5ccd93b0 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Akira TAGOH 2023-12-21 13:55:29 UTC
Fixed this in 1.8.8-1. it should works for both with/without the above duplicate "wayland" name.