Difference between revisions of "GNOME/Files"

From ArchWiki
Jump to: navigation, search
(Nautilus 3.6 delete key move to trash)
(Files is no longer the default file manager: Add GUI way to reset directory file associations)
 
(111 intermediate revisions by 33 users not shown)
Line 1: Line 1:
 
[[Category: File managers]]
 
[[Category: File managers]]
 +
[[Category: GNOME]]
 +
[[ar:Nautilus]]
 
[[es:Nautilus]]
 
[[es:Nautilus]]
{{Article summary start}}
+
[[ja:GNOME Files]]
{{Article summary text|This article covers installation, configuration, and general usage tips for Nautilus.}}
+
[[de:Nautilus]]
{{Article summary heading|Related}}
+
{{Related articles start}}
{{Article summary wiki|GNOME}}: [[Desktop Environment]] that encompasses Nautilus
+
{{Related|GNOME}}
{{Article summary wiki|Thunar}}: [[Xfce4]]'s default file manager.
+
{{Related|File manager functionality}}
{{Article summary text|[http://library.gnome.org/users/user-guide/stable/nautilus.html Nautilus Guide] - official GNOME guide on using Nautilus.}}
+
{{Related|Nemo}}
{{Article summary end}}
+
{{Related|Thunar}}
 +
{{Related|PCManFM}}
 +
{{Related articles end}}
  
[http://live.gnome.org/Nautilus Nautilus] is the default file manager for [https://live.gnome.org/ GNOME]. [http://library.gnome.org/users/user-guide/stable/gosnautilus-22.html.en From the Gnome website]: ''The Nautilus file manager provides a simple and integrated way to manage your files and applications. You can use the file manager to do the following:''
+
Files is the default file manager for [https://wiki.gnome.org/ GNOME]. Files attempts to provide a streamlined method to manage both files and applications.
* Create folders and documents
+
 
* Display your files and folders
+
{{Note|Files was known as [https://wiki.gnome.org/Apps/Nautilus 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.}}
* Search and manage your files
+
* Run scripts and launch applications
+
* Customize the appearance of files and folders
+
* Open special locations on your computer
+
* Write data to a CD or DVD
+
* Install and remove fonts
+
  
 
== Installation ==
 
== Installation ==
  
[https://wiki.archlinux.org/index.php/Pacman Install] {{Pkg|nautilus}} from the [https://wiki.archlinux.org/index.php/Official_repositories Official Repositories].
+
[[Install]] the {{Pkg|nautilus}} package. This package is part of the {{Grp|gnome}} group. See also [[File manager functionality#Additional features]].
  
{{Note|Nautilus does not require the entire {{Pkg|gnome-shell}} package, but it does require {{Pkg|gnome-desktop}}. Some may find this nice because gnome-shell is a bit more of an undertaking to install.}}
+
{{Note|Files does not depend on the {{Pkg|gnome-shell}} package, only requiring {{Pkg|gnome-desktop}}.}}
  
Nautilus is part of the {{Grp|gnome}} group.
+
=== Plugins ===
 +
 
 +
Some programs can add extra functionality to Files. Here are a few packages in the official repositories that do just that.
 +
 
 +
* {{App|Eiciel|Include extension which add graphical [[ACL]] editor into the file properties window.|http://rofi.roger-ferrer.org/eiciel/|{{AUR|eiciel}}}}
 +
* {{App|Folder Color|Change the color of each icon separately then you are easily notice the right folder!|http://foldercolor.tuxfamily.org/|{{AUR|folder-color-nautilus-bzr}}}}
 +
:{{Tip|This extension works only with these icon-themes which contain additional colored icons, eg:<br>{{AUR|numix-icon-theme-git}}, {{AUR|vibrancy-colors}}, {{AUR|vivacious-folder-colors-addon}}, {{AUR|humanitycolors-icon-theme}}{{Broken package link|{{aur-mirror|humanitycolors-icon-theme}}}} }}
 +
* {{App|Nautilus Actions|Configures programs to be launched when files are selected in Files|http://www.nautilus-actions.org/|{{Pkg|nautilus-actions}}}}
 +
* {{App|Nautilus Admin|Add to menu: "Open as administrator" or "Edit as administrator"|https://bitbucket.org/brunonova/nautilus-admin|{{AUR|nautilus-admin}}}}
 +
* {{App|Nautilus Terminal|Terminal embedded in Files. It is always open in the current folder, and follows the navigation.|http://projects.flogisoft.com/nautilus-terminal/|{{Pkg|nautilus-terminal}}}}
 +
* {{App|Open in Terminal|A Files plugin for opening terminals in arbitrary local paths|http://ftp.gnome.org/pub/GNOME/sources/nautilus-open-terminal|{{Pkg|nautilus-open-terminal}}}}
 +
:{{Tip|This plugin is not needed if you have {{Pkg|gnome-terminal}} installed: since version 3.10.0-2 it provides the extension {{ic|/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 [https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h&#61;packages/gnome-terminal&id&#61;b143484f73a75663abacb69435fd663c348861d2 this commit].}}
 +
* {{App|Send to Menu|Files context menu for sending files.|http://download.gnome.org/sources/nautilus-sendto/|{{Pkg|nautilus-sendto}}}}
 +
* {{App|Seahorse Nautilus|PGP encryption and signing for Files|http://git.gnome.org/browse/seahorse-nautilus/|{{Pkg|seahorse-nautilus}}}}
 +
* {{App|File Roller|An application for browsing archives|https://wiki.gnome.org/Apps/FileRoller|{{Pkg|file-roller}}}}
  
 
== Configuration ==
 
== Configuration ==
  
Nautilus is simple to configure graphically, but not all potential configurations can be done via the preferences menu in nautilus. More options are available with {{Pkg|dconf-editor}} under {{ic|org.gnome.nautilus}}.
+
Files is simple to configure graphically, but not all options are available in the preferences menu. More options are available with ''dconf-editor'' under {{ic|org.gnome.nautilus}}.
  
=== Desktop Management ===
+
=== Desktop Icons ===
  
Nautilus, by default, no longer controls your background/desktop in gnome-shell. If you like having icons on your desktop or enjoy the neat click-and-drag rectangle when you're bored, you can easily configure nautilus to handle the desktop.
+
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.
  
Install the package {{Pkg|gnome-tweak-tool}} and run it. Click on the "Desktop" list item, and click the "Have file manager handle the desktop" slider to "on". You may have to restart nautilus by running {{ic|killall nautilus; nautilus}} or if you are running [[Gnome]], press {{Keypress|ALT+F2}}, type {{ic|r}}, and press {{Keypress|Enter}}.
+
To enable desktop icons, in {{Pkg|gnome-tweak-tool}}, choose: ''Desktop > Icons on Desktop > ON''. You may have to restart Files by running {{ic|killall nautilus; nautilus}} or if you are running [[GNOME]], press {{ic|ALT+F2}}, type {{ic|r}}, and press {{ic|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 {{ic|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 ===
 
=== Remove folders from the places sidebar ===
Line 43: Line 67:
 
=== Always show text-entry location ===
 
=== Always show text-entry location ===
  
The standard Nautilus 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 {{Keypress|Ctrl+l}}
+
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 {{ic|Ctrl+l}}
  
To make the location text-entry field always present, use gsettings as shown.
+
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
 
  $ gsettings set org.gnome.nautilus.preferences always-use-location-entry true
Line 51: Line 75:
 
{{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.}}
 
{{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.}}
  
=== Plugins ===
+
== Tips and tricks ==
Some programs can add extra functionality to Nautilus. Here are a few packages in the official repositories that do just that.
+
  
* {{App|Nautilus Actions|Configures programs to be launched when files are selected in Nautilus|http://gnome.org|{{Pkg|nautilus-actions}}}}
+
=== Thumbnails ===
* {{App|Open in Terminal|A nautilus plugin for opening terminals in arbitrary local paths|http://ftp.gnome.org/pub/GNOME/sources/nautilus-open-terminal|{{Pkg|nautilus-open-terminal}}}}
+
* {{App|Send to Menu|Nautilus context menu for sending files.|http://download.gnome.org/sources/nautilus-sendto/|{{Pkg|nautilus-sendto}}}}
+
* {{App|Sound Converter|Nautilus extension to convert audio files formats|http://code.google.com/p/nautilus-sound-converter/|{{AUR|nautilus-soundconverter}}}}
+
* {{App|seahorse-nautilus|PGP encryption and signing for nautilus|http://git.gnome.org/browse/seahorse-nautilus/|{{Pkg|seahorse-nautilus}}}}
+
  
=== Nautilus 3.6 create an empty document ===
+
See [[File manager functionality#Thumbnail previews]].
Gnome 3.6 brings new changes to Nautilus. Some features are dropped in favour of easy maintainence of Nautilus. Creating an empty document option has been removed from the default menu in Nautilus. One has to create a {{ic|~/Templates/ }} folder in your home folder and place an empty file inside the folder through your favourite Terminal by {{ic|touch ~/Templates/new
+
}} or by using any other file manager. Restart nautilus to get back the function of creating an empty document from Nautilus menu.
+
  
=== Nautilis 3.6 use delete key to move to trash ===
+
=== Create an empty document in Files 3.6 and above ===
By default Nautilus now no longer uses the delete key to move files to trash. If you want to get that feature back make the following changes in {{ic|~/.config/nautilus/accels}}:
+
  
- ; (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
+
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 {{ic|~/Templates/}} folder in your home folder and place an empty file inside the folder through your favorite Terminal by {{ic|touch ~/Templates/new
+ (gtk_accel_path "<Actions>/DirViewActions/Trash" "Delete")
+
}} 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 {{ic|xdg-user-dir TEMPLATES}}.
 +
 
 +
=== Music files metadata in list view ===
 +
 
 +
{{Note|The script linked to below is slightly modified to fix an error. The original can be found [http://bazaar.launchpad.net/~team1/+junk/devel/view/head:/bsc-v2.py here].}}
 +
 
 +
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: {{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.
 +
 
 +
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 ==
 
== Troubleshooting ==
=== Nautilus can't browse my windows network shares ===
+
 
Nautilus relies on {{Pkg|gvfs-smb}} for this functionality, it can be [https://wiki.archlinux.org/index.php/Pacman Installed] from the [https://wiki.archlinux.org/index.php/Official_repositories Official Repositories]
+
=== Files is no longer the default file manager ===
 +
 
 +
This can be caused by the file association for directories being reset. Installing {{Pkg|anjuta}} tends to do this.
 +
 
 +
To solve this, open Files, right-click on a folder, and choose ''Open With Other Application > Files > Select''. This will set the association for directories back to Files.
 +
 
 +
If this does not solve the issue, see [[File manager functionality#Directories are not opened in the file manager]].

Latest revision as of 13:29, 5 August 2016

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

Install the nautilus package. This package is part of the gnome group. See also File manager functionality#Additional features.

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

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.
http://rofi.roger-ferrer.org/eiciel/ || eicielAUR
  • 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
http://www.nautilus-actions.org/ || nautilus-actions
  • Nautilus Admin — Add to menu: "Open as administrator" or "Edit as administrator"
https://bitbucket.org/brunonova/nautilus-admin || nautilus-adminAUR
  • 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 this 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
  • File Roller — An application for browsing archives
https://wiki.gnome.org/Apps/FileRoller || file-roller

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

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

Note: The script linked to below is slightly modified to fix an error. The original can be found here.

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 be caused by the file association for directories being reset. Installing anjuta tends to do this.

To solve this, open Files, right-click on a folder, and choose Open With Other Application > Files > Select. This will set the association for directories back to Files.

If this does not solve the issue, see File manager functionality#Directories are not opened in the file manager.