Difference between revisions of "Thunar"

From ArchWiki
Jump to: navigation, search
m (+link to the french wiki page)
(Tips and tricks: Added info on how to hide devices from side pane)
(14 intermediate revisions by 4 users not shown)
Line 13: Line 13:
 
{{Article summary end}}
 
{{Article summary end}}
  
[http://thunar.xfce.org/index.html Thunar] is a file manager that is designed to be fast, lightweight, and easy-to-use. It can be installed by itself or as part of the {{Grp|xfce4}} group.
+
From the project [http://docs.xfce.org/xfce/thunar/start home page]:
 +
: ''Thunar is a new modern file manager for the Xfce Desktop Environment. Thunar has been designed from the ground up to be fast and easy-to-use. Its user interface is clean and intuitive, and does not include any confusing or useless options by default. Thunar is fast and responsive with a good start up time and folder load time.''
  
 
== Installation ==
 
== Installation ==
  
[[pacman|Install]] the {{Pkg|thunar}} package which is available in the [[official repositories]].
+
[[pacman|Install]] the {{Pkg|thunar}} package which is available in the [[official repositories]]. It is part of the {{Grp|xfce4}} group, so if you are running [[Xfce4]], you probably already have Thunar installed.
  
If you are running [[Xfce|Xfce4]], you probably already have Thunar installed.
+
=== Automounting ===
  
== Automounting ==
+
Thunar uses [[GVFS]] for automounting, see [[GVFS]] for details on getting it working.
  
Thunar uses [[gvfs]] for automounting, see [[GVFS]] for details on getting it working.
+
=== Plugins and addons ===
  
 +
* {{App|Thunar Archive Plugin|Plugin which allows you to create and extract archive files using contextual menu items. It does not create or extract archives directly, but instead acts as a frontend for other programs such as File Roller ({{Pkg|file-roller}}), Ark ({{Pkg|kdeutils-ark}}) or Xarchiver ({{AUR|xarchiver}}). Part of {{Grp|xfce4-goodies}}.|http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin|{{Pkg|thunar-archive-plugin}}}}
 +
* {{App|Thunar Media Tags Plugin|Plugin which allows you to view detailed information about media files. It also has a bulk renamed and allows editing of media tags. It supports ID3 (the MP3 file format's system) and Ogg/Vorbis tags. Part of {{Grp|xfce4-goodies}}.|http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin|{{Pkg|thunar-media-tags-plugin}}}}
 +
* {{App|Thunar Shares Plugin|Plugin which allows you to quickly share a folder using Samba from Thunar without requiring root access. See also [[Samba#Creating user share path|how to configure directions]].|http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin|{{AUR|thunar-shares-plugin}}}}
 +
* {{App|[[Thunar#Thunar Volume Manager|Thunar Volume Manager]]|Automatic management of removeable devices in Thunar. Part of {{Grp|xfce4}}.|http://goodies.xfce.org/projects/thunar-plugins/thunar-volman|{{Pkg|thunar-volman}}}}
 +
* {{App|Tumbler|External program to generate thumbnails. Also install {{Pkg|ffmpegthumbnailer}} to enable video thumbnailing.|http://git.xfce.org/xfce/tumbler/tree/README|{{Pkg|tumbler}}}}
  
 
== Thunar Volume Manager ==
 
== Thunar Volume Manager ==
Line 30: Line 36:
 
While Thunar can support automatic mounting and unmounting of removable media, the Thunar Volume Manager allows extended functionality, such as automatically running commands or automatically opening a Thunar window for mounted media.
 
While Thunar can support automatic mounting and unmounting of removable media, the Thunar Volume Manager allows extended functionality, such as automatically running commands or automatically opening a Thunar window for mounted media.
  
==== Installation ====
+
=== Installation ===
  
Thunar Volume Manager can be installed from the package {{Pkg|thunar-volman}} in the [[official repositories]].
+
Thunar Volume Manager can be installed from the package {{Pkg|thunar-volman}} in the official repositories.
  
==== Configuration ====
+
=== Configuration ===
  
 
It can also be configured to execute certain actions when cameras and audio players are connected.  
 
It can also be configured to execute certain actions when cameras and audio players are connected.  
Line 51: Line 57:
 
=== Using Thunar to browse remote locations ===
 
=== Using Thunar to browse remote locations ===
  
Since Xfce 4.8 (Thunar 1.2) it is possible to browse remote locations (such as FTP servers or Samba shares) directly in Thunar, similar to the functionality found in GNOME and KDE. The {{Pkg|gvfs}} and {{Pkg|gvfs-smb}} packages are required to enable this functionality. Both packages are available in the [[official repositories]].
+
Since Xfce 4.8 (Thunar 1.2) it is possible to browse remote locations (such as FTP servers or Samba shares) directly in Thunar, similar to the functionality found in GNOME and KDE. The {{Pkg|gvfs}}, {{Pkg|gvfs-smb}} and {{Pkg|sshfs}} packages are required to enable this functionality. These packages are available in the [[official repositories]].
  
After a restart of Xfce an additional "Network" entry is added to Thunar's side bar and remote locations can be opened by using the following URI schemes in the location dialog (opened with {{Keypress|Ctrl+L}}): smb://, ftp://, ssh://
+
After a restart of Xfce an additional "Network" entry is added to Thunar's side bar and remote locations can be opened by using the following URI schemes in the location dialog (opened with {{ic|Ctrl+l}}): smb://, <nowiki>ftp://</nowiki>, ssh://, sftp://
  
=== GVFS need DBus ===
+
=== GVFS needs D-Bus and polkit ===
  
Make sure [[dbus]] is launched to use [[gvfs]] if you use a special Window Manager . Otherwise gvfs don't be activate.
+
If you use a standalone window manager, make sure [[D-Bus]] is launched on login, and you are running a [[polkit]] authentication agent. Otherwise GVFS will not be active. See [[General Troubleshooting#Session permissions]] for details.
  $cat .xinitrc
+
  exec dbus-launch awesome
+
  
 
=== Starting in daemon mode ===
 
=== Starting in daemon mode ===
Line 65: Line 69:
 
Thunar may be run in daemon mode. This has several advantages, including a faster startup for Thunar, as well as Thunar running in the background and only opening a window when necessary (for instance, when a flash drive is inserted).
 
Thunar may be run in daemon mode. This has several advantages, including a faster startup for Thunar, as well as Thunar running in the background and only opening a window when necessary (for instance, when a flash drive is inserted).
  
One option is to autostart it using {{ic|.xinitrc}} or an autostart script (such as [[Openbox]]'s {{ic|autostart}}). It is up to you to decide the best way to start it, and this option can be run from a script or run directly as a command in the terminal.
+
Make sure the command {{ic|thunar --daemon}} is [[autostarting|autostarted]] on login.
 
+
To run Thunar in daemon mode, simply add to your autostart script or run from the terminal:
+
$ thunar --daemon &
+
  
 
=== Setting the icon theme ===
 
=== Setting the icon theme ===
  
 
When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing.  Window Managers like Awesome and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting.  It is possible to install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used.  The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to {{ic|~/.gtkrc-2.0}}:
 
When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing.  Window Managers like Awesome and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting.  It is possible to install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used.  The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to {{ic|~/.gtkrc-2.0}}:
  gtk-icon-theme-name = "Tango"
+
gtk-icon-theme-name = "Tango"
  
 
Of course, just installing the {{Pkg|gnome-icon-theme}} package will give Thunar an icon theme to use other than the default paper icon for all items.
 
Of course, just installing the {{Pkg|gnome-icon-theme}} package will give Thunar an icon theme to use other than the default paper icon for all items.
Line 81: Line 82:
 
Some people still have problems with Thunar taking a long time to start for the first time. This is due to gvfs checking the network, preventing Thunar from starting until gvfs finishes its operations. To change this behaviour, edit {{ic|/usr/share/gvfs/mounts/network.mount}} and change '''AutoMount=true''' to '''AutoMount=false'''.
 
Some people still have problems with Thunar taking a long time to start for the first time. This is due to gvfs checking the network, preventing Thunar from starting until gvfs finishes its operations. To change this behaviour, edit {{ic|/usr/share/gvfs/mounts/network.mount}} and change '''AutoMount=true''' to '''AutoMount=false'''.
  
== Other plugins and addons ==
+
=== Hide Shortcuts in Side Pane ===
 
+
Many of these packages belong to the {{Grp|xfce4-goodies}} group. If you've installed the group, you probably have these packages already.
+
 
+
=== Thunar Archive Plugin ===
+
 
+
The [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] allows you to create and extract archive files using contextual menu items. It does not create or extract archives directly, but instead acts as a frontend for other programs such as File Roller, Ark, or Xarchiver. It is available through the {{Pkg|thunar-archive-plugin}} package in the [[official repositories]].
+
 
+
=== Thunar Media Tags Plugin ===
+
 
+
The [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] allows you to view detailed information about media files. It also has a bulk renamed and allows editing of media tags. It supports ID3 (the MP3 file format's system) and Ogg/Vorbis tags. It is available through the {{Pkg|thunar-media-tags-plugin}} package.
+
 
+
=== Thunar thumbnails ===
+
 
+
Thunar relies on an external program called [http://git.xfce.org/xfce/tumbler/tree/README tumbler] to generate thumbnails. It is available through the {{Pkg|tumbler}} package.
+
 
+
To generate video thumbnails, you also need to install {{Pkg|ffmpegthumbnailer}}.
+
 
+
=== Thunar shares ===
+
  
The [http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin Thunar Shares Plugin] allows you to quickly share a folder using Samba from Thunar without requiring root access. It is available through the {{AUR|thunar-shares-plugin}} package in the [[AUR]].
+
There is a hidden menu to hide Shortcuts in the Side Pane.
  
See [[Samba#Creating user share path]] for configuration directions.
+
Right click in the Side Pane where there are no shortcuts, like on the DEVICES section label. Then you will get a pop-up menu where you can uncheck items you do not want displayed.
  
 
== Custom actions ==
 
== Custom actions ==
Line 131: Line 114:
 
Please note that when using many custom actions to symlink files and folder to a particular place, it might be useful to put them into the {{ic|Send To}} folder of the context menu to avoid that the menu itself gets bloated. This is fairly easy to achieve and requires a .desktop file in {{ic|~/.local/share/Thunar/sendto}} for each action to perform. Say we want to put the above dropbox symlink action into Send To, we create a {{ic|dropbox_folder.desktop}} with the following content. The new applied action will be active after restarting Thunar.
 
Please note that when using many custom actions to symlink files and folder to a particular place, it might be useful to put them into the {{ic|Send To}} folder of the context menu to avoid that the menu itself gets bloated. This is fairly easy to achieve and requires a .desktop file in {{ic|~/.local/share/Thunar/sendto}} for each action to perform. Say we want to put the above dropbox symlink action into Send To, we create a {{ic|dropbox_folder.desktop}} with the following content. The new applied action will be active after restarting Thunar.
  
[Desktop Entry]
+
{{bc|<nowiki>
Type=Application
+
[Desktop Entry]
Version=1.0
+
Type=Application
Encoding=UTF-8
+
Version=1.0
Exec=ln -s %f /path/to/DropboxFolder
+
Encoding=UTF-8
Icon=/usr/share/icons/dropbox.png
+
Exec=ln -s %f /path/to/DropboxFolder
Name=Dropbox
+
Icon=/usr/share/icons/dropbox.png
 +
Name=Dropbox
 +
</nowiki>}}
  
== See also==
+
== See also ==
  
* [http://thunar.xfce.org/index.html Thunar] project page.
+
* [http://thunar.xfce.org/index.html Thunar] project page
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] project page.
+
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] project page
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] project page.
+
* This [http://goodies.xfce.org/projects/thunar-plugins/start list] of plugins
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] project page.
+
*[http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin/ Thunar Shares Plugin] project page.
+
* This [http://goodies.xfce.org/projects/thunar-plugins/start list] of plugins.
+

Revision as of 00:31, 5 November 2013

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki: Thunar is installed with a nominal installation of xfce4. Template:Article summary text. Template:Article summary end

From the project home page:

Thunar is a new modern file manager for the Xfce Desktop Environment. Thunar has been designed from the ground up to be fast and easy-to-use. Its user interface is clean and intuitive, and does not include any confusing or useless options by default. Thunar is fast and responsive with a good start up time and folder load time.

Installation

Install the thunar package which is available in the official repositories. It is part of the xfce4 group, so if you are running Xfce4, you probably already have Thunar installed.

Automounting

Thunar uses GVFS for automounting, see GVFS for details on getting it working.

Plugins and addons

  • Thunar Archive Plugin — Plugin which allows you to create and extract archive files using contextual menu items. It does not create or extract archives directly, but instead acts as a frontend for other programs such as File Roller (file-roller), Ark (kdeutils-ark) or Xarchiver (xarchiverAUR). Part of xfce4-goodies.
http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin || thunar-archive-plugin
  • Thunar Media Tags Plugin — Plugin which allows you to view detailed information about media files. It also has a bulk renamed and allows editing of media tags. It supports ID3 (the MP3 file format's system) and Ogg/Vorbis tags. Part of xfce4-goodies.
http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin || thunar-media-tags-plugin
  • Thunar Shares Plugin — Plugin which allows you to quickly share a folder using Samba from Thunar without requiring root access. See also how to configure directions.
http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin || thunar-shares-pluginAUR
http://goodies.xfce.org/projects/thunar-plugins/thunar-volman || thunar-volman
  • Tumbler — External program to generate thumbnails. Also install ffmpegthumbnailer to enable video thumbnailing.
http://git.xfce.org/xfce/tumbler/tree/README || tumbler

Thunar Volume Manager

While Thunar can support automatic mounting and unmounting of removable media, the Thunar Volume Manager allows extended functionality, such as automatically running commands or automatically opening a Thunar window for mounted media.

Installation

Thunar Volume Manager can be installed from the package thunar-volman in the official repositories.

Configuration

It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:

  1. Launch Thunar and go to Edit > Preferences
  2. Under the 'Advanced' tab, check 'Enable Volume Management'
  3. Click configure and check the following items:
    • Mount removable drives when hot-plugged.
    • Mount removable media when inserted.
  4. Also make desired changes (see the example below)

Here's an example setting for making Amarok play an audio CD.

 Multimedia - Audio CDs: amarok --cdplay %d

Tips and tricks

Using Thunar to browse remote locations

Since Xfce 4.8 (Thunar 1.2) it is possible to browse remote locations (such as FTP servers or Samba shares) directly in Thunar, similar to the functionality found in GNOME and KDE. The gvfs, gvfs-smb and sshfs packages are required to enable this functionality. These packages are available in the official repositories.

After a restart of Xfce an additional "Network" entry is added to Thunar's side bar and remote locations can be opened by using the following URI schemes in the location dialog (opened with Ctrl+l): smb://, ftp://, ssh://, sftp://

GVFS needs D-Bus and polkit

If you use a standalone window manager, make sure D-Bus is launched on login, and you are running a polkit authentication agent. Otherwise GVFS will not be active. See General Troubleshooting#Session permissions for details.

Starting in daemon mode

Thunar may be run in daemon mode. This has several advantages, including a faster startup for Thunar, as well as Thunar running in the background and only opening a window when necessary (for instance, when a flash drive is inserted).

Make sure the command thunar --daemon is autostarted on login.

Setting the icon theme

When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing. Window Managers like Awesome and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting. It is possible to install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used. The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to ~/.gtkrc-2.0:

gtk-icon-theme-name = "Tango"

Of course, just installing the gnome-icon-theme package will give Thunar an icon theme to use other than the default paper icon for all items.

Solving problem with slow cold start

Some people still have problems with Thunar taking a long time to start for the first time. This is due to gvfs checking the network, preventing Thunar from starting until gvfs finishes its operations. To change this behaviour, edit /usr/share/gvfs/mounts/network.mount and change AutoMount=true to AutoMount=false.

Hide Shortcuts in Side Pane

There is a hidden menu to hide Shortcuts in the Side Pane.

Right click in the Side Pane where there are no shortcuts, like on the DEVICES section label. Then you will get a pop-up menu where you can uncheck items you do not want displayed.

Custom actions

This section covers useful custom actions which can be accessed through Edit -> Configure custom actions. More examples are listed in the thunar wiki.

Scan for viruses

To use this action you need to have clamav and clamtk installed.

Name Command File patterns Appears if selection contains
Scan for virus clamtk %F * Select all

Link to Dropbox

Name Command File patterns Appears if selection contains
Link to Dropbox ln -s %f /path/to/DropboxFolder * Directories, other files

Please note that when using many custom actions to symlink files and folder to a particular place, it might be useful to put them into the Send To folder of the context menu to avoid that the menu itself gets bloated. This is fairly easy to achieve and requires a .desktop file in ~/.local/share/Thunar/sendto for each action to perform. Say we want to put the above dropbox symlink action into Send To, we create a dropbox_folder.desktop with the following content. The new applied action will be active after restarting Thunar.

[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Exec=ln -s %f /path/to/DropboxFolder
Icon=/usr/share/icons/dropbox.png
Name=Dropbox

See also