Commit graph

3 commits

Author SHA1 Message Date
Corey Hinshaw
9b10a16775 Move swayrun outside of PATH
Because swayrun is not intended to be called directly by users,
it is moved to /usr/lib. The sway.desktop wayland session file is
also updated to reflect this new location.
2019-02-11 22:53:46 -05:00
Corey Hinshaw
f1d64f811d Add swayrun command to run sway using a login shell
When running Sway from a display manager, a user's login shell is
not used. Because of this, profile scripts are not run and the
environment may not be configured. As suggested in #3109, this can
be solved by a wrapper that runs sway via the user's configured
shell. This is similar to the approach taken by GNOME to source
the standard set of profile scripts.

This could be accomplished with a shell script, but a dedicated
binary avoids dependencies on specific shells.

The sway.desktop wayland session file is also updated to call the
swayrun wrapper.
2019-02-09 23:32:29 -05:00
Max Bruckner
0ac6409a75 Add Wayland and Xorg session files
This allows display managers to detect sway.
2015-08-20 23:12:34 +02:00