Difference between revisions of "PCManFM"

From ArchWiki
Jump to: navigation, search
(Auto Mounting external storage devices)
m (xvkbd is a dependency, needs to be mentioned otherwise it might generate a lot of newbie questions)
 
(66 intermediate revisions by 29 users not shown)
Line 1: Line 1:
 
[[Category:File managers]]
 
[[Category:File managers]]
 +
[[ar:PCManFM]]
 
[[cs:PCManFM]]
 
[[cs:PCManFM]]
 
[[fr:PCManFM]]
 
[[fr:PCManFM]]
[[id:PCManFM]]
+
[[it:PCManFM]]
 +
[[ja:PCManFM]]
 
[[pl:PCManFM]]
 
[[pl:PCManFM]]
 
[[ru:PCManFM]]
 
[[ru:PCManFM]]
'''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).
+
{{Related articles start}}
 +
{{Related|LXDE}}
 +
{{Related|Openbox}}
 +
{{Related|File manager functionality}}
 +
{{Related|SpaceFM}}
 +
{{Related|Thunar}}
 +
{{Related|GNOME Files}}
 +
{{Related|Nemo}}
 +
{{Related articles end}}
  
==Installation==
+
From the project [http://wiki.lxde.org/en/PCManFM home page]:
Run the following command to install:
+
: ''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.''
# pacman -S pcmanfm
+
  
You will also require [[gamin]] (a replacement for [[FAM]], which required a daemon) to pick up events such as file and directories changes:
+
== Installation ==
  
# pacman -S gamin
+
[[Install]] the {{Pkg|pcmanfm}} package, or {{Pkg|pcmanfm-gtk3}} for the GTK3 version, or {{AUR|pcmanfm-git}} for the development version. {{Pkg|gvfs}} is recommended for trash support, mounting with [[udisks]] and remote filesystems.
  
==Volume handling==
+
[[Qt]] variants are available through {{Pkg|pcmanfm-qt}} and {{AUR|pcmanfm-qt-git}}.
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.
+
  
===Auto Mounting USB external storage devices===
+
== Desktop management ==
To auto mount USB external storage devices only simply install gvfs:
+
The command to allow PCManFM to set wallpapers and enable the use of desktop icons is:
  
  # pacman -S gvfs
+
  pcmanfm --desktop
  
If they do not auto mount after installing, try rebooting your system and try again.
+
The native desktop menu of the window manager will be replaced with that provided by PCManFM. However, it can easily be restored from the PCManFM menu itself by selecting {{ic|Desktop preferences}} and then enabling the {{ic|Right click shows WM menu}} option in the {{ic|Desktop}} tab.
  
===Mounting with udisks===
+
=== Desktop preferences ===
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.
+
If using the native desktop menu provided by a window manager, enter the following command to set or amend desktop preferences at any time:
  
===Trash support, browsing network shares, and automounting with gvfs===
+
$ pcmanfm --desktop-pref
To resolve the "Operation not supported" error when clicking on Trash Can, you must do the following steps:<br />
+
  
1. Install package gvfs<br />
+
It is worthwhile to consider adding this command to a keybind and/or the native desktop menu for easy access.
2. Start pcmanfm only using the following command: dbus-launch pcmanfm<br />
+
  
To browse network shares:<br />
+
=== Creating new icons ===
1. Install packages gvfs gvfs-smb gvfs-afp<br />
+
User content such as text files, documents, images and so forth can be dragged and dropped directly onto the desktop. To create shortcuts for applications it will be necessary to copy their {{ic|.desktop}} files to the {{ic|~/Desktop}} directory itself. Do not drag and drop the files there as they will be moved completely. The syntax of the command to do so is:  
2. Start pcmanfm only using the following command: dbus-launch pcmanfm<br />
+
3. Type smb://<server name>/<share name> to access Windows / CIFS / Samba file shares<br />
+
4. Type afp://<server name>/<share name> to access AFP file shares
+
  
==Tips & troubleshooting==
+
  cp /usr/share/applications/<name of application>.desktop ~/Desktop
===No "Applications"===
+
  # pacman -S gnome-menus
+
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. In case you have installed the "gnome-menus" package, you can set the value in your .xinitrc file with the line :
+
For example - where installed - to create a desktop shortcut for {{pkg|lxterminal}}, the following command would be used:  
$ export XDG_MENU_PREFIX=gnome-
+
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]
+
  
===No icons?===
+
cp /usr/share/applications/lxterminal.desktop ~/Desktop
If you are using a [[WM]] instead of a [[DE]] and you have no icons for folders and files, specify a gtk icon theme:
+
  
Edit {{ic|~/.gtkrc-2.0}} '''or''' {{ic|/etc/gtk-2.0/gtkrc}} and add the following line:
+
For those who used the [[XDG user directories]] program to create their {{ic|$HOME}} directories no further configuration will be required.
 +
 
 +
== Daemon mode ==
 +
 
 +
To run PCManFM in the background (to for example automatically mount removable media), use:
 +
 
 +
pcmanfm -d
 +
 
 +
Should automount fail, see [[udisks]].
 +
 
 +
== Autostarting ==
 +
How PCManFM may be autostarted as a [[daemon]] process or to manage the desktop for a standalone [[window manager]] will depend on the window manager itself. For example, to enable management of the desktop for [[Openbox]], the following command would be added to the {{ic|~/.config/openbox/autostart}} file:
 +
 
 +
pcmanfm --desktop &
 +
 
 +
Review the relevant wiki article and/or official home page for a particular installed or intended window manager. Should a window manager not provide an autostart file, PCManFM may be alternatively autostarted by editing one or both of the following files:
 +
 
 +
* [[xinitrc]]: When using the [[SLiM]] [[display manager]] or [[Startx]] command
 +
* [[xprofile]]: When using a display manager such as [[LXDM]] or [[LightDM]]
 +
 
 +
== Additional features and functionality ==
 +
Less experienced users should be aware that a file manager alone - especially when installed in a standalone [[Window manager]] such as [[Openbox]] - will not provide the features and functionality users of full desktop environments such as [[Xfce]] and [[KDE]] will be accustomed to. Review the [[file manager functionality]] article for further information.
 +
 
 +
== Tips and tricks ==
 +
 
 +
=== Thumbnail support ===
 +
 
 +
{{Merge|File manager functionality#Thumbnail Previews|This section is not specific to PCManFM.}}
 +
 
 +
PCManFM supports image thumbnails out of the box. However, in order to view thumbnails of other file types, PCManFM uses the information provided in the files located at {{ic|/usr/share/thumbnailers}}. The packages which provide a thumbnailer usually add the corresponding ''.thumbnail'' file at {{ic|/usr/share/thumbnailers}}. For example, in order to get thumbnails for OpenDocument files, you may install {{Pkg|libgsf}} from the official repositories. For video files' thumbnails, the package {{Pkg|ffmpegthumbnailer}} is required. For PDF files, you may install {{Pkg|evince}} from the official repositories, which provides {{ic|evince-thumbnailer}} and the corresponding file at {{ic|/usr/share/thumbnailers}}. However, if you prefer not to install {{ic|evince}}, you can also replicate the functionality of {{ic|evince-thumbnailer}} using {{Pkg|imagemagick}}'s {{ic|convert}} command. This is accomplished by creating a new file with the ''.thumbnail'' extension (e.g.: {{ic|imagemagick-pdf.thumbnailer}}) at {{ic|/usr/share/thumbnailers}} with the following content:
 +
 
 +
  [Thumbnailer Entry]
 +
  TryExec=convert
 +
  Exec=convert %i[0] -thumbnail %s %o
 +
  MimeType=application/pdf;application/x-pdf;image/pdf;
 +
 
 +
{{Note|The ''[0]'' next to the input file is specified so that {{ic|convert}} only generates a thumbnail of the first page. This is a {{ic|convert}}-specific syntax and has nothing to do with the syntax of the thumbnailers' files.}}
 +
 
 +
Following this example, you can specify custom thumbnailers by creating your own ''.thumbnail'' files. Keep in mind that {{ic|%i}} refers to the input file (the file which will have its thumbnail made), {{ic|%o}} to the output file (the thumbnail image) and {{ic|%s}} to the size of the thumbnail. These parameters will be automatically substituted with the corresponding data and passed to the thumbnailer program by PCManFM.
 +
 
 +
{{Tip|If you only get thumbnails of certain files and not of all the files of the same type try increasing the maximum file size of the files that get a thumbnail at ''Edit > Preferences > Display''.}}
 +
 
 +
=== 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 {{Pkg|file-roller}}, {{Pkg|xarchiver}} or {{Pkg|engrampa}} from the official repositories.
 +
 
 +
Open PCManFM in file explorer mode, go to ''Edit > Preferences > Advanced'', select ''Archiver Integration'' and select your installed archiver.
 +
 
 +
=== More options under ''Create New...'' ===
 +
 
 +
By default the ''Create New...'' sub-menu contains ''Folder'' and ''Empty File''. It is possible to include additional entries for your personal needs. To do so create them in {{ic|~/Templates/}} and restart PCManFM.
 +
 
 +
== Troubleshooting ==
 +
 
 +
=== Open With dialog window empty ===
 +
 
 +
If you do not see any applications to choose from in the open with dialog, then you can try removing {{Pkg|gnome-menus}} and instead install {{Pkg|lxmenu-data}}. Furthermore, export the following variables:
 +
 
 +
export XDG_MENU_PREFIX=lxde-
 +
export XDG_CURRENT_DESKTOP=LXDE
 +
 
 +
=== No "Applications" ===
 +
 
 +
You can try this method: Delete all files in the {{ic|$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 {{ic|/etc/xdg/menus/}} directory. E.g. you can set the value in your {{ic|.xinitrc}} file with the line:
 +
export XDG_MENU_PREFIX="lxde-"
 +
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]
 +
 
 +
=== 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. {{Pkg|oxygen-icons}} installed, edit {{ic|~/.gtkrc-2.0}} '''or''' {{ic|/etc/gtk-2.0/gtkrc}} and add the following line:
 
  gtk-icon-theme-name = "oxygen"
 
  gtk-icon-theme-name = "oxygen"
 
{{Note|All instances of PCManFM have to be restarted for changes to apply!}}
 
{{Note|All instances of PCManFM have to be restarted for changes to apply!}}
  
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:
+
Else, use an different one (''gnome'', ''hicolor'', and ''locolor'' do not work). To list all installed icon themes:
  ls ~/.icons /usr/share/icons/
+
  $ ls ~/.icons/ /usr/share/icons/
  
 
If none of them is suitable, install one. To list all installable icon packages:
 
If none of them is suitable, install one. To list all installable icon packages:
  pacman -Ss icon-theme
+
  $ pacman -Ss icon-theme
{{Tip|For an alternative GUI solution, install {{pkg|lxappearance}} and apply an icon theme from there.}}
+
{{Tip|For an alternative GUI solution, install {{Pkg|lxappearance}} and apply an icon theme from there.}}
  
===NTFS Read/Write Support===
+
=== No "Previous/Next Folder" functionality with mouse buttons ===
Install ntfs-3g (See [[NTFS-3G]]):
+
# pacman -S ntfs-3g
+
  
===gnome-open opens "Find" dialog instead of the directory===
+
A method to fix this is with [[Xbindkeys]].
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}}.
+
  
===No "Previous/Next Folder" functionality with mouse buttons===
+
Install {{Pkg|xbindkeys}}, {{Pkg|xvkbd}} and edit {{ic|~/.xbindkeysrc}} to contain the following:
A method to fix this is with [[Xbindkeys]]:
+
{{bc|<nowiki>
 +
# Sample .xbindkeysrc for a G9x mouse.
 +
"/usr/bin/xvkbd -text '\[Alt_L]\[Left]'"
 +
b:8
 +
"/usr/bin/xvkbd -text '\[Alt_L]\[Right]'"
 +
b:9
 +
</nowiki>}}
 +
Actual button codes can be obtained with package {{Pkg|xorg-xev}}.
  
Install xbindkeys:
+
Add:
# pacman -S xbindkeys
+
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 {{Pkg|xorg-xev}}
+
 
+
Add
+
 
  xbindkeys &
 
  xbindkeys &
 
to your {{ic|~/.xinitrc}} to execute xbindkeys on log-in.
 
to your {{ic|~/.xinitrc}} to execute xbindkeys on log-in.
  
===One click for open folders and files===
+
=== --desktop parameter not working or crashing X-server ===
Open PCManFM in file explorer mode, and go to:
+
{{ic|Edit > Preferences}}
+
and in '''geral > behavior''' select {{ic|Open files with a simple click}}
+
  
''this option work in the pcmanfm --desktop too''
+
Make sure you have ownership and write permissions on {{ic|~/.config/pcmanfm}}.
  
===--desktop parameter not working / crashing X-server===
+
Setting the wallpaper either by using the {{ic|--desktop-pref}} parameter or editing {{ic|~/.config/pcmanfm/default/pcmanfm.config}} solves the problem.
Make sure you have ownership and write permissions on {{ic|~/.config/pcmanfm}}
+
  
Setting the wallpaper either by using the --desktop-pref parameter or editing {{ic|~/.config/pcmanfm/default/pcmanfm.config}} solves the problem.
+
=== Terminal emulator advanced configuration not saved ===
  
===Terminal emulator advanced configuration not saved===
 
 
Make sure you have rights on libfm configuration file:
 
Make sure you have rights on libfm configuration file:
  
  # chmod -R 755 ~/.config/libfm
+
  $ chmod -R 755 ~/.config/libfm
  # chmod 777 ~/.config/libfm/libfm.conf
+
  $ 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===
+
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.
+
  
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:
+
=== Make PCManFM remember your preferred Sort Files settings ===
[Storage Permissions]
+
Identity=unix-group:storage
+
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.modify-device
+
ResultAny=yes
+
ResultInactive=yes
+
ResultActive=yes
+
  
==Available Versions==
+
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 {{ic|~/.config/pcmanfm/LXDE/pcmanfm.conf}}.
There are several versions of PCManFM currently available:
+
  
===PCManFM2===
+
=== "Not authorized" error when attempting to mount drive ===
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].
+
See the [[Polkit#Mounting_storage_without_password|mounting without a password]] section of the [[Polkit]] article.
  
===PCManFM-Mod===
+
=== Operation not supported ===
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].
+
  
===PCManFM_with_Search===
+
See the General troubleshooting article on [[General_troubleshooting#Session_permissions|Session permissions]].
Latest PCmanFM version with search dialog in the [[AUR]] as {{aur|pcmanfm_with_search}}.
+

Latest revision as of 13:18, 14 June 2016

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

Install the pcmanfm package, or pcmanfm-gtk3 for the GTK3 version, or pcmanfm-gitAUR for the development version. gvfs is recommended for trash support, mounting with udisks and remote filesystems.

Qt variants are available through pcmanfm-qt and pcmanfm-qt-gitAUR.

Desktop management

The command to allow PCManFM to set wallpapers and enable the use of desktop icons is:

pcmanfm --desktop

The native desktop menu of the window manager will be replaced with that provided by PCManFM. However, it can easily be restored from the PCManFM menu itself by selecting Desktop preferences and then enabling the Right click shows WM menu option in the Desktop tab.

Desktop preferences

If using the native desktop menu provided by a window manager, enter the following command to set or amend desktop preferences at any time:

$ pcmanfm --desktop-pref

It is worthwhile to consider adding this command to a keybind and/or the native desktop menu for easy access.

Creating new icons

User content such as text files, documents, images and so forth can be dragged and dropped directly onto the desktop. To create shortcuts for applications it will be necessary to copy their .desktop files to the ~/Desktop directory itself. Do not drag and drop the files there as they will be moved completely. The syntax of the command to do so is:

cp /usr/share/applications/<name of application>.desktop ~/Desktop

For example - where installed - to create a desktop shortcut for lxterminal, the following command would be used:

cp /usr/share/applications/lxterminal.desktop ~/Desktop

For those who used the XDG user directories program to create their $HOME directories no further configuration will be required.

Daemon mode

To run PCManFM in the background (to for example automatically mount removable media), use:

pcmanfm -d

Should automount fail, see udisks.

Autostarting

How PCManFM may be autostarted as a daemon process or to manage the desktop for a standalone window manager will depend on the window manager itself. For example, to enable management of the desktop for Openbox, the following command would be added to the ~/.config/openbox/autostart file:

pcmanfm --desktop &

Review the relevant wiki article and/or official home page for a particular installed or intended window manager. Should a window manager not provide an autostart file, PCManFM may be alternatively autostarted by editing one or both of the following files:

Additional features and functionality

Less experienced users should be aware that a file manager alone - especially when installed in a standalone Window manager such as Openbox - will not provide the features and functionality users of full desktop environments such as Xfce and KDE will be accustomed to. Review the file manager functionality article for further information.

Tips and tricks

Thumbnail support

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

Notes: This section is not specific to PCManFM. (Discuss in Talk:PCManFM#)

PCManFM supports image thumbnails out of the box. However, in order to view thumbnails of other file types, PCManFM uses the information provided in the files located at /usr/share/thumbnailers. The packages which provide a thumbnailer usually add the corresponding .thumbnail file at /usr/share/thumbnailers. For example, in order to get thumbnails for OpenDocument files, you may install libgsf from the official repositories. For video files' thumbnails, the package ffmpegthumbnailer is required. For PDF files, you may install evince from the official repositories, which provides evince-thumbnailer and the corresponding file at /usr/share/thumbnailers. However, if you prefer not to install evince, you can also replicate the functionality of evince-thumbnailer using imagemagick's convert command. This is accomplished by creating a new file with the .thumbnail extension (e.g.: imagemagick-pdf.thumbnailer) at /usr/share/thumbnailers with the following content:

  [Thumbnailer Entry]
  TryExec=convert
  Exec=convert %i[0] -thumbnail %s %o
  MimeType=application/pdf;application/x-pdf;image/pdf;
Note: The [0] next to the input file is specified so that convert only generates a thumbnail of the first page. This is a convert-specific syntax and has nothing to do with the syntax of the thumbnailers' files.

Following this example, you can specify custom thumbnailers by creating your own .thumbnail files. Keep in mind that %i refers to the input file (the file which will have its thumbnail made), %o to the output file (the thumbnail image) and %s to the size of the thumbnail. These parameters will be automatically substituted with the corresponding data and passed to the thumbnailer program by PCManFM.

Tip: If you only get thumbnails of certain files and not of all the files of the same type try increasing the maximum file size of the files that get a thumbnail at Edit > Preferences > Display.

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, xarchiver or engrampa from the official repositories.

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

More options under Create New...

By default the Create New... sub-menu contains Folder and Empty File. It is possible to include additional entries for your personal needs. To do so create them in ~/Templates/ and restart PCManFM.

Troubleshooting

Open With dialog window empty

If you do not see any applications to choose from in the open with dialog, then you can try removing gnome-menus and instead install lxmenu-data. Furthermore, export the following variables:

export XDG_MENU_PREFIX=lxde-
export XDG_CURRENT_DESKTOP=LXDE

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, xvkbd 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" error when attempting to mount drive

See the mounting without a password section of the Polkit article.

Operation not supported

See the General troubleshooting article on Session permissions.