PCManFM: Difference between revisions

From NixOS Wiki
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>

Revision as of 20:00, 13 January 2018

PCManFM is a free file manager application and the standard file manager of LXDE.

Installation

Install the pcmanfm package.

Additional features

Add lxmenu-data to be offered a list of "Installed applications" when opening a file.

Add shared_mime_info to recognise different file types.

USB Automounting

For USB mounting support, install gvfs and add the following line to your configuration:[1]

  environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];

If automounting still does not work you may need to explicitly enable devmon and udisks2. Keep in mind that all removable media will automatically mounted even without pcmanfm running.

configuration.nix

    services.udisks2.enable = true;
    services.devmon.enable = true;