Actions

← Go back to Tips and Tricks

PCManFM is the default file and desktop manager for Lubuntu. Despite its simplicity it supports custom actions, a collection of scripts in .desktop format to extend functionality (usually with the richt-click menu on a file). All you need is place them at the folder "~/.local/share/file-manager/actions" (you'll need to press ctrl+h to show this hidden folders).


These files are just text script with information about what to do, where and how, with the extension ".desktop". If you need more info visit MadeBits, provided by our friend Vasian. Here's the list of actions you can download, and more to coming (just grab them and put on the folder mentioned above):



 Open folder as root

It allows open a folder as root (superuser)




 Set as wallpaper

Selects an image file as a wallpaper for your desktop




If you have nice actions please send them and share with all of us!

← Go back to Tips and Tricks

19 comments:

  1. Attention! Wrong link to "Set as wallpaper" :|

    ReplyDelete
  2. Fixed it. Thank you ;)

    ReplyDelete
  3. Just got PCManFM 1.2.0 with an upgrade to 14.04, and was wondering where the "Open folder as root" option had gone under the "Tools" menu ... but here it is! :)

    Thanks!

    ReplyDelete
  4. It seems it was removed from menus due to security issues. Now we have the same option here, and many more! ;)

    ReplyDelete
  5. works only for root, user rejected:(
    -rwxr-xr-x 1

    ReplyDelete
  6. works only for root, user rejected:(
    -rwxr-xr-x 1

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete


  8. hi there the script for the file manger is no longer there is there some were else i could grab it thanks for your time

    ReplyDelete
  9. Files are being translated again due to changes in my account. They're uploaded again so you can get them. Sorry for the annoyance

    ReplyDelete
  10. Files are being translated again due to changes in my account. They're uploaded again so you can get them. Sorry for the annoyance

    ReplyDelete
  11. Hi,
    I was looking for the "Open as root" script for PCManFM, but the link(s) just got to the Box Icon theme download. Have the script been removed lately?

    // Martin

    ReplyDelete
  12. Phugoid Floyd, my apologies. Because of the moving (from one cloud to another) the links weren't updated properly. Fixed now.

    ReplyDelete
  13. Has the open-as-root file moved to a different cloud again, by chance? I just downloaded it a few weeks ago and it was working fine, but now I just get a blank page from copy.com... Thanks for the work, this script is VERY handy!

    ReplyDelete
  14. Not moved. I just messed it up :)

    It's fixed now. Sorry.

    ReplyDelete
  15. No problem; thanks again for this useful script

    ReplyDelete
  16. I took your open-as-root action and changed some of the fields so that I could "Scan with ClamTk" (anti-virus) from a right-click (like it's already possible to do with nemo, thunar, and kde/dolphin, and maybe nautilus?). I've found it very useful and since you invited people to share actions, I thought I'd pass it along. Two things though: first, somebody may want to briefly glance over what I did since I am admittedly a COMPLETE NOVICE when it comes to this kind of stuff and I just did a little trial-and-erroring myself to get it to work (I wouldn't want it to shutdown someone's life support system!); second, I don't even know how you'd like me to send this little .desktop file. Either way, thanks for the useful open-as-root and if people find my "Scan with ClamTk" useful, maybe I'll submit it to the ClamTk people so other Lubuntu fans can benefit!

    ReplyDelete
  17. I am running PCMAN 1.2.0 under Lubuntu 14.02 32 bit and there is no "~/.local/share/file-manager/actions" folder on my system. Has something changed in the folder locations since you wrote this tutorial? Really would like to add these actions to PCMAN. Thanks.

    ReplyDelete
  18. No that I know. Have you tried to create this folder manually?

    ReplyDelete
  19. Hi, Rafael. I'm spreading the use of Lubuntu 14.04 and I noticed that newbie users don't find easely the way of ejecting USB drives. I would like to write an action in order to safely eject an USB drive with a right click menu (and contextually a CD/DVD unit), but I don't konw how. I would like the result would be something as in Terminal "$ udisks --unmount /dev/sdb1 && udisks --detach /deb/sdb". Thanks in advance.

    ReplyDelete