Hot answers tagged

21

If the file dialog is based on the Gnome toolkit (Gtk), then you should be able to toggle the location popup using keyboard shortcut Ctrl+L See GtkFileChooserWidget: The “location-popup” signal


15

Thunar doesn't actually have a keybinding for changing to the next/previous tab, but instead the underlying GTK control, in this case GtkNotebook, has some key bindings. GtkNotebook defines previous tab as both Ctrl+PageUp and Ctrl+Alt+PageUp (and similarly for next tab/page down); however, in Thunar's case, the Ctrl+PageUp/Ctrl+PageDown keybinding is ...


15

Open ~/.config/gtk-3.0/bookmarks with your text editor. Add this line at the end: recent:/ Save the file. Open thunar. There should be a recent bookmark on the side panel now


11

An alternative to drag and drop is the Send To menu: Right-click on the folder you want to add as bookmark Send to → Side Pane (Create Shortcut) Drag and drop didn’t work for me. According to a post in the thread Thunar bookmarks are broken. Salix64 Xfce 14.1, the reason is the missing file ~/.gtk-bookmarks. After using the Send To method once, the file ...


11

These characters ? and : are not valid on a FAT32 filesystem, so if that is where you need to copy your files you will need to rename them. From the command line you can use command-line tools such as rename (sometimes known as prename) to replace these characters with _ or even to remove them: rename 's/[?<>\\:*|\"]/_/g' # Change invalid ...


10

Deactivate "Automatically expand columns as needed" in Thunar's menu "View" > "Configure Columns". Source: https://askubuntu.com/questions/405369/thunar-doesnt-save-settings-on-exit That does work for me so far.


10

The way thunar-archive-plugin works is the following. If you want to extract the file test.tar.gz with a right click in thunar. the process that work in background is the following: It determines the mime type of the file. You can do it like that: # xdg-mime query filetype /path/to/test.targ.gz # application/x-gzip It determines the default app for this ...


9

Building upon answer from theY4Kman, this is how to do it without Python: dbus-send --type=method_call --dest=org.xfce.Thunar /org/xfce/FileManager org.xfce.FileManager.DisplayFolderAndSelect string:"/home/user/Downloads" string:"File.txt" string:"" string:"" The only caveat is that you need to separate folder path and file name.


7

The following Python script will add all the files given as arguments to the recently-used list, using GIO: #!/usr/bin/python3 import gi, sys gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gio, GLib rec_mgr = Gtk.RecentManager.get_default() for arg in sys.argv[1:]: rec_mgr.add_item(Gio.File.new_for_path(arg).get_uri()) GLib.idle_add(...


6

With a little digging, I discovered this is possible using D-Bus: #!/usr/bin/env python import dbus import os import sys import urlparse import urllib bus = dbus.SessionBus() obj = bus.get_object('org.xfce.Thunar', '/org/xfce/FileManager') iface = dbus.Interface(obj, 'org.xfce.FileManager') _thunar_display_folder = iface.get_dbus_method('DisplayFolder') ...


5

The shortcut is shown in the View menu : Ctrl+M


5

Mounting just means "set up the operating system to actively use the some (part of) a block device". Often there is some "busy" or "dirty" on the superblock that gets changed when a file system is mounted, but otherwise the hardware is unaffected. OTOH, eject sends a SCSI "START STOP" command to the device, with option "eject" set. The USB controller in a ...


5

Inspired by this post on the Ubuntu forums, I found out the culprit was the Hardware Abstraction Layer. I ignored the device in question by creating the following file: /usr/local/share/hal/fdi/preprobe/20thirdparty/10-ignore-swap.fdi with the following contents: <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device&...


4

Turns out you have to install gvfs and polkit-gnome to make this work. After logging out and in again Thunar supports mounting USB devices.


4

The reason Thunar starts by default in xfce is because xfce comes out of the box already in agreement with Thunar as it's default file manager. This dependency is not written in mimetype, but rather as a dbus service. You can test this yourself by starting this command in a new terminal: dbus-monitor --session interface=org.freedesktop.FileManager1 Now try ...


4

As of Thunar version 1.6.10 (Xfce 4.12), this is still broken There is a good alternative to Thunar, however. LXDE's default file manager is PCManFM, and it's a perfect stand-in for Thunar. Not only does it have a toggleable option for case-sensitive sorting, it also has tabs, side-by-side windowing, a tree view as well as the more-common "Places" view, and ...


4

It is definitely allowed to have ? in a filename. From the POSIX standard: Filename A sequence of bytes consisting of 1 to {NAME_MAX} bytes used to name a file. The bytes composing the name shall not contain the <NUL> or <slash> characters. In the context of a pathname, each filename shall be followed by a <slash> or a <NUL> ...


4

Custom Thunar actions are stored in ~/.config/Thunar/uca.xml; copying that file elsewhere will provide a backup that you can restore in future simply by copying it back. When restoring a file, it’s worth checking to see whether the system you’re copying the file to has any interesting actions of its own (e.g. from new defaults in a newer version of Thunar). ...


4

So, as said in the question, Thunar removal is not needed. (If it was removed, it can be re-installed; in Mint it's sudo apt install thunar mint-meta-xfce thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman xfce4-places-plugin.) The whole problem is related to identifying the Xfce desktop manager. I have received an answer to that question: ...


3

Make the mime-info file $ vi ~/.local/share/mime/packages/x-r-noweb.xml $ cat ~/.local/share/mime/packages/x-r-noweb.xml <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/x-r-noweb"> <comment>R noweb</comment> <glob ...


3

Thunar internally uses tumbler for the thumbnail generation. Tumbler is a d-bus service for applications to request thumbnails for different MIME types.


3

With thunar's built-in command line switches, you can't. If you see man thunar, you'll figure that you could only open a folder that way, but you won't be able to preselect a file in it. Does it mean that you can't do it at all? Fortunately not, but you'll need help from external programs. An example that accomplishes this using xdotool to send ctrl+s and ...


3

I don't like using a wastebasket, and I don't understand why they usually aren't optional with Linux DE's/file managers. Anyway whatever, here's a stupid but functional workaround with whatever DE. You'll need inotifywait, which is in the inotify-tools package on Arch and Debian: #/bin/bash # Once at the start for good measure rm -rf .local/share/Trash/...


3

I found this thread while looking for the solution of the same problem as OP. Later I found there is a simpler workaround. Pressing DEL will behave as real delete when you disable gvfs-trash command, e.g. by creating no-op command somewhere on PATH: sudo ln -s /usr/bin/true /usr/local/bin/gvfs-trash Then you can also hide the trashcan from desktop and from ...


3

By request, my comment posted as an answer: xfdesktop docs.xfce.org/xfce/xfdesktop/start Unfortunately, I don't have any directly pertinent details, as I've never pursued replacement of xfdesktop with a file manager's desktop handling functionality or anything else. I did do a brief search of replace "xfdesktop" on DuckDuckGo and found (four pages deep in ...


2

If you haven't used the concept of "Trash" since Windows 3.1, like me, you could use: chmod 0 /home/username/.local/share/Trash/files While this throws an error when you just use DEL, at least that error reminds you to press Shift+DEL.


2

I'm wondering if rather than attempt to do it this way, rather you created a shell script that took the %f argument as the custom command and then did something like this internally: #!/bin/bash for i in "$@"; do echo "/usr/bin/exfalso $i" done This will generate a series of commands like this: $ ./myexfalso_lancher.bash 1 2 3 "4 5" /usr/bin/exfalso 1 /...


2

Do this: right-click on the folder you want in the contextual menu, put the pointer on "Send to" and then click "Side-pane (Create shortcut)" edit: sorry, I didn't see the above answer. I only saw the complaint about drag & drop not working.


Only top voted, non community-wiki answers of a minimum length are eligible