mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
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.
This commit is contained in:
parent
ec5da0ca5b
commit
f1d64f811d
5 changed files with 115 additions and 1 deletions
7
swayrun/meson.build
Normal file
7
swayrun/meson.build
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
executable(
|
||||
'swayrun',
|
||||
'main.c',
|
||||
include_directories: [sway_inc],
|
||||
link_with: [lib_sway_common],
|
||||
install: true
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue