Navigatrix.net - A Voyager's Companion http://navigatrix.net/ |
|
File Manager Root Power http://navigatrix.net/viewtopic.php?f=10&t=683 |
Page 1 of 1 |
Author: | Moe [ 10 Aug 2014, 22:15 ] |
Post subject: | File Manager Root Power |
In the 'old' File Manager there use to be a menu option to open a directory as root. Now you can have the power back at your fingertips to really screw up your system. Code: mkdir -p ~/.local/share/file-manager/actions/ Code: gksu medit ~/.local/share/file-manager/actions/asroot.desktop Paste in Code: [Desktop Entry] Save, log out and back in.Name = Open this as root Tooltip = Directories in root Icon = system-file-manager Profiles = on_folder; on_file; [X-Action-Profile on_folder] Name = open a root File Manager on the current folder or on the selected folder MimeTypes = inode/directory; # note that this means strictly less than 2, as the equal sign is part of the DES syntax SelectionCount = < 2 Exec = gksudo pcmanfm %d [X-Action-Profile on_file] Name = open a text editor of the selected item MimeTypes = text/plain; Exec = gksudo medit %f Now, when you right click on a directory in the File Manager, toward the bottom of the popup is the option to open this as root. It will open directories in a new root File Manager. Right click on a text file and it will open in the Text Editor (medit) as root. Attachment: root_power.png [ 133.89 KiB | Viewed 12405 times ] |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |