Talk:Sway: Difference between revisions
imported>Fadenb Removed section that refers to config option that is no longer referenced on the page. |
imported>Fadenb m Formatting for better readability |
||
Line 1: | Line 1: | ||
== Calls to dbus-update-activation-environment == | == Calls to dbus-update-activation-environment == | ||
Note that the default sway configuration template /etc/sway/config includes /etc/sway/config.d/*, | Note that the default sway configuration template <code>/etc/sway/config</code> includes <code>/etc/sway/config.d/*</code>, | ||
and specifically includes /etc/sway/config.d/nixos.conf , which has the following contents: | and specifically includes <code>/etc/sway/config.d/nixos.conf</code>, which has the following contents: | ||
# Import the most important environment variables into the D-Bus and systemd | # Import the most important environment variables into the D-Bus and systemd | ||
Line 8: | Line 8: | ||
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP | exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP | ||
Likewise, the example configuration in the wiki creates a script /bin/dbus-sway-environment that attempts | Likewise, the example configuration in the wiki creates a script <code>/bin/dbus-sway-environment</code> that attempts | ||
to call dbus-update-activation-environment. | to call <code>dbus-update-activation-environment</code>. (In spite of the partial redundancy with | ||
/etc/sway/config.d/nixos.conf, the dbus-sway-environment script still seems to be necessary to get the | <code>/etc/sway/config.d/nixos.conf</code>, the dbus-sway-environment script still seems to be necessary to get the | ||
required user dbus services successfully started.) However, neither of these attempts to execute | required user dbus services successfully started.) However, neither of these attempts to execute | ||
dbus-update-activation-environment | dbus-update-activation-environment | ||
works unless dbus-update-activation-environment is in the | works unless dbus-update-activation-environment is in the | ||
path (e.g., unless there is a symlink /run/current-system/sw/bin/dbus-update-activation-environment | path (e.g., unless there is a symlink <code>/run/current-system/sw/bin/dbus-update-activation-environment</code> | ||
pointing at the executable somewhere under /nix/store/). To get dbus-update-activation-environment | pointing at the executable somewhere under <code>/nix/store/</code>). To get dbus-update-activation-environment | ||
and the other binaries from the dbus package into the general path, one should add pkgs.dbus | and the other binaries from the dbus package into the general path, one should add <code>pkgs.dbus</code> | ||
to the environment.systemPackages list in configuration.nix. | to the environment.systemPackages list in configuration.nix. (If using home manager, this | ||
might be accomplished by other means.) | might be accomplished by other means.) |