GNOME/Files

From ArchWiki
< GNOME
Revision as of 11:42, 23 April 2015 by Marcvangend (talk | contribs) (Use delete key to move to trash in Files 3.6 - 3.14: changed version numbers, information no longer applies to the latest version)
Jump to navigation Jump to search

Files is the default file manager for GNOME. Files attempts to provide a streamlined method to manage both files and applications.

Note: Files was known as Nautilus prior to version 3.6. The application was given new descriptive names, one for each supported language. The name 'Nautilus' is still used in numerous places such as the executable name, some package names, some desktop entries, and some GSettings schemas.

Installation

Files can be installed with the nautilus package from the official repositories. This package is part of the gnome group.

Note: Files does not depend on the gnome-shell package, only requiring gnome-desktop.

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
Note: Sessions such as GNOME Classic call the nautilus-classic desktop entry which will ensure that desktop icons are always enabled.

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
Note: After changing this setting, you will not be able to expose the button bar. Only when the setting is false can both forms of location navigation be employed.

Tips and tricks

Plugins

Some programs can add extra functionality to Files. Here are a few packages in the official repositories that do just that.

  • Nautilus Actions — Configures programs to be launched when files are selected in Files
http://www.nautilus-actions.org/ || nautilus-actions
  • Nautilus Terminal — Terminal embedded in Files. It is always open in the current folder, and follows the navigation.
http://projects.flogisoft.com/nautilus-terminal/ || nautilus-terminal
  • 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 [commit]).
  • Send to Menu — Files context menu for sending files.
http://download.gnome.org/sources/nautilus-sendto/ || nautilus-sendto
  • Seahorse Nautilus — PGP encryption and signing for Files
http://git.gnome.org/browse/seahorse-nautilus/ || seahorse-nautilus

Thumbnails for videos

Install ffmpegthumbnailer.

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.

Use delete key to move to trash in Files 3.6 - 3.14

By default, Files 3.6 until 3.14 no longer used the delete key to move files to trash. To revert this, use:

~/.config/nautilus/accels
; (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
(gtk_accel_path "<Actions>/DirViewActions/Trash" "Delete")

And restart Files with:

$ nautilus -q

This behavior was reverted in Files 3.16.

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
Tip: If you want the change to be system-wide, run the command above as root or create/edit the file /usr/share/applications/mimeapps.list and add the line there.