Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G gnome-session
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 52
    • Issues 52
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnome-session
  • Issues
  • #41
Closed
Open
Issue created Nov 18, 2019 by Benjamin Berg@bbergMaintainer0 of 2 checklist items completed0/2 checklist items

gnome-session should not save/restore RequiredComponents (causes upgrade failure when switching to systemd startup)

It turns out that users can still enable session auto-saving (i.e. org.gnome.SessionManager auto-save-session true). If this is done, a org.gnome.Shell.desktop will be saved for GNOME Shell at least with non-systemd startup. If the user then upgrades, the saved .desktop file is picked up. This causes GNOME shell to start twice, because the org.gnome.Shell.desktop file in ~/.config/gnome-session/saved-session/ does not contain the X-GNOME-HiddenUnderSystemd=true flag.

I believe it is wrong to ever save a RequiredComponent like this. To fix this issue, we should both prevent saving and also loading of the corresponding .desktop files.

i.e.:

  • Do not save RequiredComponents
  • Ignore any .desktop file in ~/.config/gnome-session/saved-session/ for a RequiredCompnent

CC: @otte CC: @iainl

Example generated .desktop file:

[Desktop Entry]
Name=gnome-shell
Comment=Client 102eb1df84c7856967155381274637567800000298960000 which was automatically saved
Icon=system-run
Type=Application
StartupNotify=true
X-GNOME-Autostart-startup-id=102eb1df84c7856967155381274637567800000298960000
Exec=gnome-shell --sm-client-id 102eb1df84c7856967155381274637567800000298960000
X-GNOME-Autostart-discard-exec=rm -f /home/lvs/.config/mutter/sessions/102eb1df84c7856967155381274637567800000298960000.ms
X-GNOME-Provides=panel;windowmanager;;;;
X-GNOME-Autostart-Phase=DisplayServer
X-GNOME-AutoRestart=false
Assignee
Assign to
Time tracking