Difference between revisions of "GNOME/Files"
Lahwaacz.bot (talk | contribs) (update Pkg/AUR templates (https://github.com/lahwaacz/wiki-scripts/blob/master/update-package-templates.py)) |
Lahwaacz.bot (talk | contribs) (improve install link as recommended in Help:Style#Package management instructions) |
||
Line 95: | Line 95: | ||
GNOME Files lacks the ability to display metadata for music files in list view mode. A [[Python]] script is available which adds list view columns for the artist, album, track title, bit rate and more. | GNOME Files lacks the ability to display metadata for music files in list view mode. A [[Python]] script is available which adds list view columns for the artist, album, track title, bit rate and more. | ||
− | To use the script you first need to [[ | + | To use the script you first need to [[install]] the following: {{Pkg|python2-nautilus}}, {{Pkg|mutagen}}, {{Pkg|python2-pillow}}, {{Pkg|kaa-metadata}} and {{Pkg|python2-exiv2}}. |
Once the dependencies are installed, save the [http://pastebin.com/zN69twVP bsc-v2.py] script to {{ic|~/.local/share/nautilus-python/extensions}} (create the directory if it does not exist) and restart Files. | Once the dependencies are installed, save the [http://pastebin.com/zN69twVP bsc-v2.py] script to {{ic|~/.local/share/nautilus-python/extensions}} (create the directory if it does not exist) and restart Files. |
Revision as of 21:18, 13 December 2015
Files is the default file manager for GNOME. Files attempts to provide a streamlined method to manage both files and applications.
Installation
Files can be installed with the nautilus package from the official repositories. This package is part of the gnome group.
- Install package gvfs-smb for Windows network shares.
- Install package gvfs-afp[broken link: replaced by gvfs] and avahi for accessing apple network shares. In addition to installing Avahi, it must be enabled too.
Plugins
Some programs can add extra functionality to Files. Here are a few packages in the official repositories that do just that.
- Eiciel — Include extension which add graphical ACL editor into the file properties window.
- Folder Color — Change the color of each icon separately then you are easily notice the right folder!
- http://foldercolor.tuxfamily.org/ || folder-color-nautilus-bzrAUR
- Tip: This extension works only with these icon-themes which contain additional colored icons, eg:
numix-icon-theme-gitAUR, vibrancy-colorsAUR, vivacious-folder-colors-addonAUR, humanitycolors-icon-themeAUR[broken link: archived in aur-mirror]
- Nautilus Actions — Configures programs to be launched when files are selected in Files
- Nautilus Admin — Add to menu: "Open as administrator" or "Edit as administrator"
- Nautilus Terminal — Terminal embedded in Files. It is always open in the current folder, and follows the navigation.
- Open in Terminal — A Files plugin for opening terminals in arbitrary local paths
- http://ftp.gnome.org/pub/GNOME/sources/nautilus-open-terminal || nautilus-open-terminal
- Tip: This plugin is not needed if you have gnome-terminal installed: since version 3.10.0-2 it provides the extension
/usr/lib/nautilus/extensions-3.0/libterminal-nautilus.so
which creates an entry in Files' context menu for opening the selected directory in a new terminal - see this commit.
- Send to Menu — Files context menu for sending files.
- Seahorse Nautilus — PGP encryption and signing for Files
Configuration
Files is simple to configure graphically, but not all options are available in the preferences menu. More options are available with dconf-editor under org.gnome.nautilus
.
Desktop Icons
Files, by default, no longer manages the desktop window in GNOME Shell. However, Files does have the ability to provide desktop icons if they are desired. Files achieves this by drawing a transparent window (containing the icons) which sits on top of the desktop window.
To enable desktop icons, in gnome-tweak-tool, choose: Desktop > Icons on Desktop > ON. You may have to restart Files by running killall nautilus; nautilus
or if you are running GNOME, press ALT+F2
, type r
, and press Enter
(this restarts GNOME Shell).
Alternatively, run the following command which will achieve the same effect:
$ gsettings set org.gnome.desktop.background show-desktop-icons true
Change default item view
You can change the default view for the items by setting the default-folder-viewer
variable, e.g. for the list view:
$ gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
Remove folders from the places sidebar
The displayed folders are specified in ~/.config/user-dirs.dirs
and can be altered with any editor. An execution of xdg-user-dirs-update
will change them again, thus it may be advisable to set the file permissions to read-only.
Always show text-entry location
The standard Files toolbar shows a button bar interface for path navigation. To enter path locations using the keyboard, you must expose the location text-entry field. This is done by pressing Ctrl+l
To make the location text-entry field always present, use gsettings as shown below:
$ gsettings set org.gnome.nautilus.preferences always-use-location-entry true
Tips and tricks
Thumbnails
See File manager functionality#Thumbnail previews.
Create an empty document in Files 3.6 and above
GNOME 3.6 brought changes to Files. The option to create an empty document has been removed from the right-click menu in Files. To get this option back one has to create a ~/Templates/
folder in your home folder and place an empty file inside the folder through your favorite Terminal by touch ~/Templates/new
or by using any other file manager. Then just restart Files.
On non-English installations, the templates directory might have another name. One can find the actual directory with xdg-user-dir TEMPLATES
.
Music files metadata in list view
GNOME Files lacks the ability to display metadata for music files in list view mode. A Python script is available which adds list view columns for the artist, album, track title, bit rate and more.
To use the script you first need to install the following: python2-nautilus, mutagen, python2-pillow, kaa-metadata and python2-exiv2.
Once the dependencies are installed, save the bsc-v2.py script to ~/.local/share/nautilus-python/extensions
(create the directory if it does not exist) and restart Files.
The new columns should now have been added. To enable them, navigate to Preferences -> List columns and tick the columns that you wish to use.
Troubleshooting
Files is no longer the default file manager
This can happen for a number of reasons, primarily when an installation of another application forces mime type changes. If Files is not recognized as the default file manager, set Files as default handler for the mime type inode/directory:
$ xdg-mime default org.gnome.Nautilus.desktop inode/directory
... which will generate:
~/.local/share/applications/mimeapps.list
[Default Applications] inode/directory=org.gnome.Nautilus.desktop
/usr/share/applications/mimeapps.list
and add the line there.