PCManFM: Difference between revisions

imported>Krey
No edit summary
imported>Makefu
No edit summary
Line 11: Line 11:
Add <code>shared_mime_info</code> to recognise different file types.
Add <code>shared_mime_info</code> to recognise different file types.


==== USB Automounting ====
For USB mounting support, install <code>gvfs</code> and add the following line to your configuration:[https://github.com/NixOS/nixpkgs/issues/29137]
For USB mounting support, install <code>gvfs</code> and add the following line to your configuration:[https://github.com/NixOS/nixpkgs/issues/29137]


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
   environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];
   environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];
</syntaxhighlight>
If automounting still does not work you may need to explicitly enable <code>devmon</code> and <code>udisks2</code>. Keep in mind that all removable media will automatically mounted even without pcmanfm running.
<code>configuration.nix</code>
<syntaxhighlight lang="nix">
    services.udisks2.enable = true;
    services.devmon.enable = true;
</syntaxhighlight>
</syntaxhighlight>