How to use ~/.Xclients used by XDM with lightdm?

Asked by Bill Perkins on 2013-12-23

I have always in the past used XDM (X Display Manager) to initiate my X session that uses FVWM as the session's window manager. I am wondering how to best implement a starting script for Lightdm that performs the task of starting the programs that are run before FVWM is started as originally setup in the ~/.Xclients script that was used by XDM to start these programs and, in turn, the FVWM window manager, which is the final entry in that script. When FVWM is terminated at the end of the X session, the script would finish and control is passed back to XDM to allow the login and startup of a new session. The specific question is: how to setup Lightdm to run these preliminary programs that need to start or run before FVWM starts as the window manager?

Question information

Language:
English Edit question
Status:
Answered
For:
Light Display Manager Edit question
Assignee:
No assignee Edit question
Last query:
2013-12-23
Last reply:
2014-01-06
Robert Ancell (robert-ancell) said : #1

The relavant configuration is:

# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
[SeatDefaults]
session-wrapper=lightdm-session
greeter-wrapper=
guest-wrapper=
display-setup-script=
display-stopped-script=
greeter-setup-script=
session-setup-script=
session-cleanup-script=

You probably want to run this from the session-wrapper. In Ubuntu this script [1] runs various setup scripts from /etc.

[1] http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/view/head:/debian/lightdm-session

Can you help with this problem?

Provide an answer of your own, or ask Bill Perkins for more information if necessary.

To post a message you must log in.