This wiki page is about a path or a file in the Linux file system. Be bold and improve it! Describe its purpose and its use, which program created it and uses it, which configuration settings it might be dependent on, and which Linux distributions typically have this file by default while others might not.

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

The ~/.xprofile file is read when using login managers such as GDM, KDM or LightDM to start the X.org server.

It is for configuring and running applications before a window manager starts. e.g. a compositing manager.

.xprofile is a shell script. Thus it allows the same syntax as your shell.

Login managers

List of login managers sourcing ~/.xprofile

  • KDM
  • GDM
  • LXDM
  • SDDM
  • LightDM

List of login managers not directly sourcing ~/.xprofile:

  • XDM
  • SLiM
  • startx


Add here and specific or unusual configuration used by some linux distributions.

See also