pcmanfm
Posted: 23. Oct 2011, 09:24
Hi
Why pcmanfm-opener is left out from pcmanfm package?
Why pcmanfm-opener is left out from pcmanfm package?
Code: Select all
USAGE NOTES:
*** Custom Commands ***
/usr/bin/pcmanfm-opener is an example script to open all files passed
to it - by default this is assigned to F4. Functions F6-F9 also run
the same command until you customize them. The default pcmanfm-opener
script mostly uses xdg-open to open files - modify this script to use
your favorite apps. USE BY THE ROOT USER IS DISABLED BY DEFAULT (edit
the script to adjust this).
To change the name and command for User Command F6, copy the file
/usr/share/applications/pcmanfm-user-f6.desktop to
~/.local/share/applications/ Edit this file and add your desired command
to "Exec=" (do not use %F or %U, just the command name). This can be a
custom script or an application. Edit "Name=" to the command name as you
want it to appear on the right-click menu. Use underscore for shortcut
keys (for example, "User Co_mmand"). "Icon=" may be added if desired.
Other commands are modified with the same method - there is one desktop
file for each. Don't change the filenames of these .desktop
files or they won't work.
Code: Select all
2) Extract tarball and enter directory. The following commands will build
and install as "/usr/bin/pcmanfm-mod":
./configure --prefix=/usr
make
sudo make install
sudo install -c -m 755 pcmanfm-opener /usr/bin
sudo update-mime-database /usr/share/mime > /dev/null
sudo update-desktop-database -q