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
Last revisionBoth sides next revision
xfce:thunar:faq [2020/10/09 01:30] – fix section headers. minor punctuation improvements kevinbowenxfce:thunar:faq [2024/01/06 10:06] – Added info on how to preserve settings when starting as root alexxcons
Line 1: Line 1:
-{{ :xfce:thunar:thunar.png?nolink|}}+~~NOTOC~~ 
 +{{ :xfce:xfce.thunar.png?no link|}}
 ====== Thunar - Frequently Asked Questions ====== ====== Thunar - Frequently Asked Questions ======
  
Line 10: Line 11:
     * [[#How do I assign different keyboard shortcuts?|How do I assign different keyboard shortcuts?]]     * [[#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 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?]]
-    * [[#Where are the deleted items from the trash located?|Where are the deleted items from the trash located?]] 
-    * [[#Can Thunar display video thumbnails?|Can Thunar display video thumbnails?]] 
-    * [[#How to hide fixed disks or user locations from the sidebar|How to hide fixed disks or user locations from the sidebar]] 
  
 ---- ----
  
 +===== 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 givenFor 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 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.
  
-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.+Execution of binary files explicitly needs to be enabled in the [[xfce:thunar:preferences#advanced_preferences|advanced preferences]].
  
 ---- ----
Line 49: Line 61:
 ===== How do I assign different keyboard shortcuts? ===== ===== How do I assign different keyboard shortcuts? =====
  
-For thunar 1.6.0: hover over the menu option with the mouse pointer and press the keyboard shortcut you want to rebind it to. +Starting with thunar 4.18 you can make use of the [[xfce:thunar:4.16:preferences#shortcuts|shortcuts editor]] to assign keyboard shortcuts.
-Read more about this in the general [[:faq|FAQ]]. This functionality has been disabled by GTK3.+
  
-For thunar 1.7.0 (gtk3) and aboveyou first need to quit thunar: ''thunar -q'' +For Thunar 4.16 and beforeplease refer to the [[xfce:thunar:4.16:faq#how_do_i_assign_different_keyboard_shortcuts|previous Wiki pages]].
- +
-After that, edit the accelerators located in ''$XDG_CONFIG_HOME/Thunar/accels.scm'' (e.g. ''~/.config/Thunar/accels.scm''+
- +
-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.+
  
 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. 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.
Line 64: Line 71:
 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. 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.
  
-Hint: If you add a new UserCustomAction with keyboard shortcut, it will show in ''accels.scm''. Like that you can check the naming used for every key/modifyer. 
  
 +[[|Back To Top]]
 ---- ----
  
Line 93: Line 100:
 ---- ----
  
-===== Where are the deleted items from the trash located? ===== 
-Thunar is following the freedesktop standards in this. Following the links below you can find out more of this freedesktop specifications. Read more [[http://www.ramendik.ru/docs/trashspec.html|here]] and [[http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html|here]]. 
- 
-You will find your deleted items in ''~/.local/share/Trash/files'' 
- 
----- 
- 
-===== Can Thunar display video thumbnails? ===== 
-Two possible ways. First, You'll need to build thunar with support for gconf (GNOME thumbnailers) and install one of the available  
-movie thumbnailers for GNOME, i.e. Totem includes the totem-video-thumbnailer. Second, You can get thumbnails without GNOME by  
-installing [[http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers|thunar-thumbnailers]] plugin. 
- 
----- 
- 
-===== How to hide fixed disks or user locations from the sidebar ===== 
- 
-You can prevent fixed disks from showing up in Thunar's sidebar by adding ''x-gvfs-hide'' option to the relevant partition in the ''/etc/fstab'' file or from your disk utility. [[https://gitlab.gnome.org/GNOME/gvfs/blob/master/monitor/udisks2/what-is-shown.txt|Controlling what is shown in the user interface]] 
  
-You can hide "Desktop", "Home", ... and default GTK bookmarks from the side pane by commenting out their entries in ''~/.config/user-dirs.dirs'' [[https://askubuntu.com/questions/79150/how-to-remove-bookmarks-from-the-nautilus-sidebar/79266#79266|How to remove bookmarks from the sidebar]] 
  
 [[|Back To Top]] [[|Back To Top]]
 ---- ----
 [[:xfce:thunar:|Back to Thunar documentation page]] [[:xfce:thunar:|Back to Thunar documentation page]]