Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xfce4-session xfce4-session
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xfce
  • xfce4-sessionxfce4-session
  • Issues
  • #128
Closed
Open
Created Jan 07, 2022 by Jakob Hauser@Jakko

Starting session might fail without package "procps"

Specific example:

On distribution postmarketOS I installed package calls (a phone application). Two reboots later, the Xfce4 session fails to start and returns to the display manager.

What happens:

postmarketOS is based on distribution Alpine Linux [1], which is build around musl libc and busybox. On installation of calls, it is added to autostart. After the first reboot, calls starts a daemon. By default, at the Xfce4 shutdown/reboot dialog the option "Save session for future logins" is set. Saving the restart command for running programs is done by ps -p %u -o args= [2]. Busybox doesn't have the option "-p" in its ps command [3]. Therefore the line RestartCommand (and line Program) remains empty in file ~/.config/sessions/xfce4-session-HOSTNAME:0. When rebooting a second time, this empty line leads to xfce4-session failing to start.

Snippet from file ~/.config/sessions/xfce4-session-hostname:0:

Client6_ClientId=org.gnome.Calls
Client6_Hostname=hostname
Client6_RestartCommand=
Client6_DesktopFile=/usr/share/applications/org.gnome.Calls.desktop
Client6_Program=

Workaround:

I will set up a merge request at Alpine Linux to set package "procps" as a dependency of xfce4-session. This package contains the full-featured ps command [4].

Points I want to raise:

  • Maybe there are other distros running on busybox or other reasons why xfce4-session should run reliably without package "procps".
  • Even if package "procps" isn't installed and a RestartCommand line remains empty, this shouldn't lead to xfce4-session failing to start. I would expect just the program not starting. This would confuse the user as well but would be less severe.

OS/software:

  • Distribution: postmarketOS (based on Alpine Linux)
  • xfce4-session version: 4.16.0

References:

  • [1] https://www.alpinelinux.org
  • [2] https://gitlab.xfce.org/xfce/xfce4-session/-/blob/xfce4-session-4.16.0/xfce4-session/xfsm-client.c#L450
  • [3] https://www.busybox.net/downloads/BusyBox.html#ps
  • [4] https://gitlab.com/procps-ng/procps/-/blob/v3.3.17/ps/help.c#L114
Assignee
Assign to
Time tracking