Samba: Difference between revisions
imported>Paumr |
imported>Jchv - Remove GIO_EXTRA_MODULES hack as it should no longer be needed as of 19.09. - Add more detail around the dbus session. |
||
| Line 35: | Line 35: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
environment.systemPackages = with pkgs; [ lxqt.lxqt-policykit ]; # provides a default authentification client for policykit | environment.systemPackages = with pkgs; [ lxqt.lxqt-policykit ]; # provides a default authentification client for policykit | ||
services.gnome3.gvfs.enable = true; # enables gvfs | services.gnome3.gvfs.enable = true; # enables gvfs | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Furthermore, if you happen to start your Window Manager via | Furthermore, if you happen to start your Window Manager directly, via `xinitrc`, or directly invoke a Wayland compositor such as Sway, you should ensure that you launch dbus at startup in your session and export its environment. If you do not have a dbus session in your environment, you will see errors such as "Operation not supported" when attempting to browse the network. | ||
For example, if you are using `xinitrc`, you could invoke `dbus-launch`: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
export `dbus-launch` # starts dbus and exports its address | export `dbus-launch` # starts dbus and exports its address | ||
exec xterm # your prefered Window Manager | exec xterm # your prefered Window Manager | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You need to restart your Window Manager to have the changes in ''.xinitrc'' to take place. | (You need to restart your Window Manager to have the changes in ''.xinitrc'' to take place.) | ||
If you are using a Wayland compositor like Sway, you can run it under `dbus-run-session` for the same effect: | |||
<syntaxhighlight lang="bash"> | |||
dbus-run-session sway | |||
</syntaxhighlight> | |||
(Because `dbus-run-session` exits when the child process exits, it is only appropriate to use `dbus-run-session` with a process that will be running during the entire session. This is the case for Wayland compositors, but is not necessarily true for all configurations of X11 window managers.) | |||
== Samba Server == | == Samba Server == | ||