Bug 1039756

Summary: GNOME needs to support default.desktop in session directories
Product: [openSUSE] openSUSE Tumbleweed Reporter: Fabian Vogt <fvogt>
Component: GNOMEAssignee: Felix Zhang <fezhang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: adrien.plazas, dimstar, fezhang, fvogt, grace.wang, jreidinger, lnussel, lslezak, mlin, okurz, qkzhu, simonf.lees, tyang, wsxy162, xiaoguang.wang, yfjiang
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: http://openqa.opensuse.org/tests/376325/modules/first_boot/steps/21
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 1030873    
Bug Blocks:    

Description Fabian Vogt 2017-05-18 15:02:36 UTC
+++ This bug was initially created as a clone of Bug #1030873 +++

If no default autologin session is defined, default.desktop (usually in /usr/share/xsessions, but can eventually be in wayland-sessions as well) is used by displaymanagers such as lightdm and sddm.

This link is now created by update-alternatives for IceWM, Xfce, LXQt (sr not accepted yet), Plasma5 and enlightenment.

This means that if GDM is used if one of those is installed, it will list default.desktop twice, as it is a symlink to a .desktop file in the same directory.

lightdm and sddm are patched to recognize this properly.

GDM should respect the default.desktop selection if nothing else is defined in /etc/sysconfig/displaymanager.

GNOME should also register itself with update-alternatives, with the same priority as KDE (25), for reference: https://build.opensuse.org/package/rdiff/KDE:Frameworks5/plasma5-session?linkrev=base&rev=108
Comment 4 Dingzhong Chen 2017-09-16 16:44:38 UTC
Is another bug report https://bugzilla.gnome.org/show_bug.cgi?id=773371 related to this?
I have installed both GNOME and iceWM. GNOME was chosen during the system installation, but iceWM came with it.
So if I try to enable autologin with GNOME on x.org, it behaves like the bug I mentioned above. Removed iceWM, GDM autologin becomes normal.
Comment 5 Dominique Leuenberger 2017-09-20 12:04:58 UTC
(In reply to Dingzhong Chen from comment #4)
> Is another bug report https://bugzilla.gnome.org/show_bug.cgi?id=773371
> related to this?

No, that is unrelated - the default.desktop implementation is kinda specific to openSUSE in this case (wayland over X is prference in GDM, and default.desktop won't change that)

> I have installed both GNOME and iceWM. GNOME was chosen during the system
> installation, but iceWM came with it.
> So if I try to enable autologin with GNOME on x.org, it behaves like the bug
> I mentioned above. Removed iceWM, GDM autologin becomes normal.

That one CAN be related, yes - depending on how the setup was installed (if the user did not chose GNOME Desktop in the role selection, then yast leaves' default' in the WM choser, which would then pick icewm, as gnome-shell does not (yet) register as default handler...
Comment 6 Bernhard Wiedemann 2017-09-22 10:01:08 UTC
This is an autogenerated message for OBS integration:
This bug (1039756) was mentioned in
https://build.opensuse.org/request/show/528236 Factory / gnome-session
Comment 8 Felix Zhang 2017-09-27 11:25:19 UTC
Seems Dominique has fixed this in Factory.
Comment 9 OBSbugzilla Bot 2021-07-19 10:10:13 UTC
This is an autogenerated message for OBS integration:
This bug (1039756) was mentioned in
https://build.opensuse.org/request/show/907064 Factory / gnome-shell-extensions