https://wiki.archlinux.org/api.php?action=feedcontributions&user=Rashkov&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:27:03ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=PCManFM&diff=247442PCManFM2013-02-15T18:59:40Z<p>Rashkov: /* Trash support, browsing network shares, and automounting with gvfs */</p>
<hr />
<div>[[Category:File managers]]<br />
[[cs:PCManFM]]<br />
[[fr:PCManFM]]<br />
[[id:PCManFM]]<br />
[[pl:PCManFM]]<br />
[[ru:PCManFM]]<br />
'''PCManFM''' is "an extremely fast, lightweight, yet feature-rich file manager with tabbed browsing". Source: [http://pcmanfm.sourceforge.net/ PCManFM on sourceforge]. PCManFM is the default file manager of the [[LXDE]] (Lightweight X11 Desktop Environment).<br />
<br />
==Installation==<br />
Run the following command to install:<br />
# pacman -S pcmanfm<br />
<br />
You will also require [[gamin]] (a replacement for [[FAM]], which required a daemon) to pick up events such as file and directories changes:<br />
<br />
# pacman -S gamin<br />
<br />
==Volume handling==<br />
PCManFM is able to mount and unmount devices, both manually and automatically. This feature is offered as an alternative to CLI tools such as [[pmount]]. There are various 'up-to-date' versions of PCManFM (see below), and different volume handling strategies can be chosen.<br />
===Mounting with udisks===<br />
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.<br />
<br />
===Trash support, browsing network shares, and automounting with gvfs===<br />
To resolve the "Operation not supported" error when clicking on Trash Can, you must do the following steps:<br /><br />
<br />
1. Install package gvfs<br /><br />
2. Start pcmanfm only using the following command: dbus-launch pcmanfm<br /><br />
<br />
To browse network shares:<br /><br />
1. Install packages gvfs gvfs-smb gvfs-afp<br /><br />
2. Start pcmanfm only using the following command: dbus-launch pcmanfm<br /><br />
3. Type smb://<server name>/<share name> to access Windows / CIFS / Samba file shares<br /><br />
4. Type afp://<server name>/<share name> to access AFP file shares<br />
<br />
==Tips & troubleshooting==<br />
===No "Applications"===<br />
# pacman -S gnome-menus<br />
You can try this method: Delete all files in the $HOME/.cache/menus directory, and run PCManFM again.<br />
<br />
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. In case you have installed the "gnome-menus" package, you can set the value in your .xinitrc file with the line :<br />
$ export XDG_MENU_PREFIX=gnome-<br />
See these threads for more informations : [https://bbs.archlinux.org/viewtopic.php?pid=1110903], and especially this post from the Linux Mint Forums [http://forums.linuxmint.com/viewtopic.php?f=175&t=53986#p501920]<br />
<br />
===No icons?===<br />
If you are using a [[WM]] instead of a [[DE]] and you have no icons for folders and files, specify a gtk icon theme:<br />
<br />
Edit {{ic|~/.gtkrc-2.0}} '''or''' {{ic|/etc/gtk-2.0/gtkrc}} and add the following line:<br />
gtk-icon-theme-name = "oxygen"<br />
{{Note|All instances of PCManFM have to be restarted for changes to apply!}}<br />
<br />
If you do not have {{pkg|oxygen-icons}} installed, use an different one ('''gnome''', '''hicolor''', and '''locolor''' do not work). To list all installed icon themes:<br />
ls ~/.icons /usr/share/icons/<br />
<br />
If none of them is suitable, install one. To list all installable icon packages:<br />
pacman -Ss icon-theme<br />
{{Tip|For an alternative GUI solution, install {{pkg|lxappearance}} and apply an icon theme from there.}}<br />
<br />
===NTFS Read/Write Support===<br />
Install ntfs-3g (See [[NTFS-3G]]):<br />
# pacman -S ntfs-3g<br />
<br />
===gnome-open opens "Find" dialog instead of the directory===<br />
Remove or rename the file {{ic|/usr/share/applications/pcmanfm-find.desktop}}. If you're running pcmanfm-mod from AUR, remove or rename the file {{ic|/usr/share/applications/pcmanfm-mod-find.desktop}}.<br />
<br />
===No "Previous/Next Folder" functionality with mouse buttons===<br />
A method to fix this is with [[Xbindkeys]]:<br />
<br />
Install xbindkeys:<br />
# pacman -S xbindkeys<br />
Edit ~/.xbindkeysrc to contain the following:<br />
# Sample .xbindkeysrc for a G9x mouse.<br />
"/usr/bin/xvkbd -text '\[Alt_L]\[Left]'"<br />
b:8<br />
"/usr/bin/xvkbd -text '\[Alt_L]\[Right]'"<br />
b:9<br />
Actual button codes can be obtained with package {{Pkg|xorg-xev}}<br />
<br />
Add<br />
xbindkeys &<br />
to your {{ic|~/.xinitrc}} to execute xbindkeys on log-in.<br />
<br />
===One click for open folders and files===<br />
Open PCManFM in file explorer mode, and go to:<br />
{{ic|Edit > Preferences}}<br />
and in '''geral > behavior''' select {{ic|Open files with a simple click}}<br />
<br />
''this option work in the pcmanfm --desktop too''<br />
<br />
===--desktop parameter not working / crashing X-server===<br />
Make sure you have ownership and write permissions on {{ic|~/.config/pcmanfm}}<br />
<br />
Setting the wallpaper either by using the --desktop-pref parameter or editing {{ic|~/.config/pcmanfm/default/pcmanfm.config}} solves the problem.<br />
<br />
===Terminal emulator advanced configuration not saved===<br />
Make sure you have rights on libfm configuration file:<br />
<br />
# chmod -R 755 ~/.config/libfm<br />
# chmod 777 ~/.config/libfm/libfm.conf<br />
<br />
===Make PCManFM remember your preferred Sort Files settings===<br />
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.<br />
<br />
==="Not authorized" errors when accessing/mounting USB drives===<br />
In various WM (in use with [[PolicyKit#Mounting_USB_drives|PolicyKit]]), You might receive an "Not authorized" errors when trying to access e.g. an USB drive.<br />
<br />
If not existing, create (including the directory actions, which ain't existing by default in there) {{ic|/etc/polkit-1/actions/org.freedesktop.udisks2.pkla}} to contain the following: <br />
[Storage Permissions]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.modify-device<br />
ResultAny=yes<br />
ResultInactive=yes<br />
ResultActive=yes<br />
<br />
==Available Versions==<br />
There are several versions of PCManFM currently available:<br />
<br />
===PCManFM2===<br />
This is the package in Arch's extra repository as "pcmanfm". The current git test version of it is available in the AUR as [https://aur.archlinux.org/packages.php?ID=33601 pcmanfm-git]. More information is available on the [http://forum.lxde.org/viewforum.php?f=22 LXDE Forum].<br />
<br />
===PCManFM-Mod===<br />
PCManFM-Mod adds user-definable commands, other features, and bugfixes to the legacy version of the PCManFM file manager v0.5.2. This version builds and installs as "pcmanfm-mod" and will run independently of other versions of PCManFM you have installed on your system. This legacy version is still desired by some due to more stability than the newer 0.9.x rewrite in progress, less Gnome dependencies, and the use of HAL rather than gnome-vfs. PCManFM-Mod is available in the [https://aur.archlinux.org/packages.php?ID=34819 AUR as pcmanfm-mod] and as [https://aur.archlinux.org/packages.php?ID=39547 pcmanfm-mod-prov] (latter provides pcmanfm). More information is available at [http://igurublog.wordpress.com/downloads/mod-pcmanfm/ IgnorantGuru's Blog].<br />
<br />
===PCManFM_with_Search===<br />
Latest PCmanFM version with search dialog in the [[AUR]] as {{aur|pcmanfm_with_search}}.</div>Rashkov