Difference between revisions of "PCManFM"

From ArchWiki
Jump to: navigation, search
(merge and revision proposal)
(remove functionality section to prep for merge with File manager functionality)
Line 28: Line 28:
 
* {{AUR|pcmanfm-qt}} - New [[Qt]] implementation.
 
* {{AUR|pcmanfm-qt}} - New [[Qt]] implementation.
 
* {{AUR|pcmanfm-qt-git}} - New Qt implementation, development version.
 
* {{AUR|pcmanfm-qt-git}} - New Qt implementation, development version.
 
== Volume handling ==
 
 
PCManFM is able to mount and unmount devices, both manually and automatically. This feature is offered as an alternative to CLI tools such as {{Pkg|udevil}} and {{AUR|pmount}}.
 
 
=== Auto mounting USB external storage devices ===
 
 
To auto mount USB external storage devices only simply install {{Pkg|gvfs}}.
 
 
If they do not auto mount after installing, try rebooting your system and try again.
 
 
=== Mounting with udisks ===
 
 
The current release of PCManFM is able to handle volumes through udisks. If you want to use this feature, make sure the D-Bus daemon is installed and running. See the [[D-Bus]] page for details.
 
 
=== NTFS read/write support ===
 
 
Install {{Pkg|ntfs-3g}}. See [[NTFS-3G]] for more informations.
 
 
=== Trash support, browsing network shares, and automounting with gvfs ===
 
 
To resolve the "Operation not supported" error when clicking on Trash Can, you must install {{Pkg|gvfs}}.
 
 
To browse network shares:
 
# Install these packages: {{Pkg|gvfs}} {{Pkg|gvfs-smb}} {{Pkg|gvfs-afp}}.
 
# Start PCManFM.
 
# Type {{ic|smb://''server name''/''share name''}} to access Windows/CIFS/Samba file shares.
 
# Type {{ic|afp://''server name''/''share name''}} to access AFP file shares.
 
 
If you get dbus- or session-related errors, see [[General Troubleshooting#Session permissions]].
 
  
 
== Tips and tricks ==
 
== Tips and tricks ==

Revision as of 13:08, 13 December 2013

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Merge-arrows-2.pngThis article or section is a candidate for merging with File manager functionality.Merge-arrows-2.png

Notes: Mounting, networking, trash, archiving, polkit rules, etc., are relevant to most file managers, not just this one. Propose to re-structure and re-write article to focus on PCManFM features, and link to functionality article for relevant issues. (Discuss in Talk:PCManFM#)

From the project home page:

PCMan File Manager (PCManFM) is a file manager application developed by Hong Jen Yee from Taiwan which is meant to be a replacement for Nautilus, Konqueror and Thunar. Released under the GNU General Public License, PCManFM is free software. PCManFM is the standard file manager in LXDE, which is also developed by the same author in conjunction with other developers.

Installation

pcmanfm is available in the official repositories.

It's recommended to install gvfs for trash support, mounting with udisk and remote filesystems.

Notable variants are:

Tips and tricks

One click for open folders and files

Open PCManFM in file explorer mode, go to Edit > Preferences > General > Behavior, and select Open files with a simple click. This option works with desktop icons too.

Open or Extract Archives with PCManFM

Install file-roller from the official repository, or xarchiverAUR from the AUR.

Open PCManFM in file explorer mode, go to Edit > Preferences > Advanced, select Archiver Integration and select your installed archiver.

Troubleshooting

No "Applications"

You can try this method: Delete all files in the $HOME/.cache/menus directory, and run PCManFM again.

PCManFM requires the environment variable XDG_MENU_PREFIX to be set. The value of the variable should match the beginning of a file present in the /etc/xdg/menus/ directory. E.g. you can set the value in your .xinitrc file with the line:

export XDG_MENU_PREFIX="lxde-"

See these threads for more informations: [1], and especially this post from the Linux Mint forums: [2]

No icons

If you are using a WM instead of a DE and you have no icons for folders and files, specify a GTK+ icon theme.

If you have e.g. oxygen-icons installed, edit ~/.gtkrc-2.0 or /etc/gtk-2.0/gtkrc and add the following line:

gtk-icon-theme-name = "oxygen"
Note: All instances of PCManFM have to be restarted for changes to apply!

Else, use an different one (gnome, hicolor, and locolor do not work). To list all installed icon themes:

$ ls ~/.icons/ /usr/share/icons/

If none of them is suitable, install one. To list all installable icon packages:

$ pacman -Ss icon-theme
Tip: For an alternative GUI solution, install lxappearance and apply an icon theme from there.

No "Previous/Next Folder" functionality with mouse buttons

A method to fix this is with Xbindkeys.

Install xbindkeys and edit ~/.xbindkeysrc to contain the following:

# Sample .xbindkeysrc for a G9x mouse.
"/usr/bin/xvkbd -text '\[Alt_L]\[Left]'"
 b:8
"/usr/bin/xvkbd -text '\[Alt_L]\[Right]'"
 b:9

Actual button codes can be obtained with package xorg-xev.

Add:

xbindkeys &

to your ~/.xinitrc to execute xbindkeys on log-in.

--desktop parameter not working or crashing X-server

Make sure you have ownership and write permissions on ~/.config/pcmanfm.

Setting the wallpaper either by using the --desktop-pref parameter or editing ~/.config/pcmanfm/default/pcmanfm.config solves the problem.

Terminal emulator advanced configuration not saved

Make sure you have rights on libfm configuration file:

$ chmod -R 755 ~/.config/libfm
$ chmod 777 ~/.config/libfm/libfm.conf

Make PCManFM remember your preferred Sort Files settings

You can use View > Sort Files to change the order in which PCManFM lists the files, but PCManFM won't remember that the next time you start it. To make it remember, go to Edit > Preferences and close. That will write your current sort_type and sort_by values into ~/.config/pcmanfm/LXDE/pcmanfm.conf.

"Not authorized" errors when accessing/mounting USB drives

Mounting a filesystem on a system device requires authentication as an administrator by default. It requires the lxpolkit package to be installed.

To enable this action without authentication for all users, create the following polkit rules file:

/etc/polkit-1/rules.d/10-enable-mount.rules
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount-system") {
        return polkit.Result.YES;
    }
});