Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xfce:thunar:faq [2018/03/13 23:25] – [How do I assign different keyboard shortcuts?] alexxconsxfce:thunar:faq [2024/01/06 10:06] (current) – [Thunar - Frequently Asked Questions] alexxcons
Line 1: Line 1:
-====== Frequently Asked Questions ======+~~NOTOC~~ 
 +{{ :xfce:xfce.thunar.png?no link|}} 
 +====== Thunar - Frequently Asked Questions ======
  
-The intent of this section is to collect the quite numerous frequently asked questions that relate to working with Thunar. If you know of a question that is missing from this page, please [[https://bugzilla.xfce.org|file a request]].+The intent of this section is to collect the quite numerous frequently asked questions that relate to working with Thunar. If you know of a question that is missing from this page, please [[https://bugzilla.xfce.org/enter_bug.cgi?product=Thunar&component=Documentation&resolution=---|file a request]].
  
 +    * [[#Why thunar forgets it's settings when run as root?|Why thunar forgets it's settings when run as root?]]
 +    * [[#Why doesn't Thunar execute files marked as executable?|Why doesn't Thunar execute files marked as executable?]]
 +    * [[#Where does Thunar store the metadata associated with files?|Where does Thunar store the metadata associated with files?]]
 +    * [[#Where does Thunar store its preferences?|Where does Thunar store its preferences?]]
 +    * [[#How to use mouse gestures in Thunar?|How to use mouse gestures in Thunar?]]
 +    * [[#How do I assign different keyboard shortcuts?|How do I assign different keyboard shortcuts?]]
 +    * [[#Why does Thunar display the fall-back icon for all files and folders?|Why does Thunar display the fall-back icon for all files and folders?]]
 +
 +----
 +
 +===== Why thunar forgets it's settings when run as root? =====
 +Thunar relies on xfconf to load/store its settings, the communication to xfconf is done via DBUS. Though for root per default no dbus-session is running.
 +
 +You can start thunar as root with dbus-session like this:
 +
 +''$ sudo dbus-run-session thunar''
 +
 +or
 +
 +''$ gksu dbus-run-session thunar''
 +
 +----
 ===== Why doesn't Thunar execute files marked as executable? ===== ===== Why doesn't Thunar execute files marked as executable? =====
-For security reasons Thunar only executes files of type application/x-desktop, application/x-executable and application/x-shellscript. For desktop files the execution feature will only be enabled if the desktop file is of type Application and a valid Exec line is given or of type Link and a valid URL is given. For the other types the feature is available if the file is marked executable for the current user.+For security reasons, by default Thunar only executes files of type application/x-desktop, application/x-executable and application/x-shellscript. For desktop files the execution will only be possible if the desktop file is of type Application, the execute flag is set and the file is trusted. (desktop files inside ''XDG_DATA_DIR'' are executable by default).
  
-Also note that for application/x-executable and application/x-shellscript, the types of the file don't really need to match these types exactly, but it is suffice if the detected type has a parent that matches one of the two types listed above, or if the MIME-type is an alias for one of the above.+Also note that for application/x-executable and application/x-shellscript, the types of the file don't really need to match these types exactly, but it is sufficient if the detected type has a parent that matches one of the two types listed above, or if the MIME-type is an alias for one of the above. 
 + 
 +Execution of binary files explicitly needs to be enabled in the [[xfce:thunar:preferences#advanced_preferences|advanced preferences]]. 
 + 
 +----
  
 ===== Where does Thunar store the metadata associated with files? ===== ===== Where does Thunar store the metadata associated with files? =====
 Thunar associates various settings with files/folders, which we call metadata. Since version 1.6 this data is stored using the ''gvfs-metadata'' daemon. The save location of the daemon data is in ''$XDG_DATA_HOME/gvfs-metadata/''. Unfortunately the content of these files is rater awful, so you can query the metadata of a location with the command ''gvfs-info -a metadata:: /some/location''. Thunar associates various settings with files/folders, which we call metadata. Since version 1.6 this data is stored using the ''gvfs-metadata'' daemon. The save location of the daemon data is in ''$XDG_DATA_HOME/gvfs-metadata/''. Unfortunately the content of these files is rater awful, so you can query the metadata of a location with the command ''gvfs-info -a metadata:: /some/location''.
 +
 +[[|Back to Top]]
 +----
  
 ===== Where does Thunar store its preferences? ===== ===== Where does Thunar store its preferences? =====
Line 16: Line 47:
  
 For an overview of the //hidden// settings, you can find an overview [[hidden-settings|here]]. For an overview of the //hidden// settings, you can find an overview [[hidden-settings|here]].
 +
 +----
  
 ===== How to use mouse gestures in Thunar? ===== ===== How to use mouse gestures in Thunar? =====
Line 24: Line 57:
   * {key>Right} -- opens the next visited folder   * {key>Right} -- opens the next visited folder
   * {key>Down }-- reloads the current folder   * {key>Down }-- reloads the current folder
 +
 +----
  
 ===== How do I assign different keyboard shortcuts? ===== ===== How do I assign different keyboard shortcuts? =====
-If you want to rebind a shortcut, Thunar supports the standard GTK+ way of changing shortcuts: simply hover over the menu option with the mouse pointer and press the keyboard shortcut you want to rebind it to. 
  
-Read more about this in the general [[:faq|FAQ]]. +Starting with thunar 4.18 you can make use of the [[xfce:thunar:4.16:preferences#shortcuts|shortcuts editor]] to assign keyboard shortcuts.
-<note important>This functionality has been disabled since GTK3 which means that thunar 1.7.0 and higher do not support it any more.</note>+
  
-For thunar/gtk3you need to quit thunar:+For Thunar 4.16 and beforeplease refer to the [[xfce:thunar:4.16:faq#how_do_i_assign_different_keyboard_shortcuts|previous Wiki pages]].
  
-''thunar -q''+Note that for some keys the ''<Shift>'' modifier seems to be ignored. (E.g. ''<Primary><Shift>1'' fails, where ''<Primary>exclam'' works fine.) Most likely a gtk bug.
  
-And after that edit the accelerators located in ''~/.config/Thunar/accels.scm''+Check the [[https://gitlab.gnome.org/GNOME/gtk/blob/master/gdk/keynames.txt|keynames.txt]] for a list of available keys.
  
 +If you are a packager, or a system administrator, and want to provide a system wide default for the keyboard shortcuts, that is different from the default shortcuts in Thunar, you can create a file ''Thunar/accels.scm'' in one of the ''$XDG_CONFIG_DIRS''. For example, if ''/etc/xdg'' is part of ''$XDG_CONFIG_DIRS'' (the default for most Linux distributions), you can install system wide defaults to ''/etc/xdg/Thunar/accels.scm''. Thunar will then load shortcuts from this file on first startup.
  
  
-===== Where does Thunar store the keyboard shortcuts? ===== +[[|Back To Top]] 
-The custom keyboard shortcuts are stored in the standard GTK+ accel map format in a file located at ''$XDG_CONFIG_HOME/Thunar/accels.scm''. Lines starting with ; are comments. See the GTK+ documentation for details about the file format. +----
- +
-If you are a packager or a system administrator and want to provide a system wide default for the keyboard shortcuts, that is different from the default shortcuts in Thunar, you can create a file ''Thunar/accels.scm'' in one of the ''$XDG_CONFIG_DIRS''. For example, if ''/etc/xdg'' is part of ''$XDG_CONFIG_DIRS'' (the default for most Linux distributions), you can install system wide defaults to ''/etc/xdg/Thunar/accels.scm''. Thunar will then load shortcuts from this file on first startup.+
  
 ===== Why does Thunar display the fall-back icon for all files and folders? ===== ===== Why does Thunar display the fall-back icon for all files and folders? =====
Line 66: Line 98:
  
 Depending on your system you might need to install the default GNOME icon theme in addition to your preferred icon theme (the Debian/Ubuntu package name is **gnome-icon-theme**). In either case the [[http://icon-theme.freedesktop.org/wiki/HicolorTheme|hicolor-icon-theme]] must be installed. Depending on your system you might need to install the default GNOME icon theme in addition to your preferred icon theme (the Debian/Ubuntu package name is **gnome-icon-theme**). In either case the [[http://icon-theme.freedesktop.org/wiki/HicolorTheme|hicolor-icon-theme]] must be installed.
 +
 +----
 +
 +
 +
 +[[|Back To Top]]
 +----
 +[[:xfce:thunar:|Back to Thunar documentation page]]