Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
21
views
Some Files in /usr/share/applications/ Not Displaying Icons in Thunar
**Debian Buster; Xfce version 4.12; Thunar version 1.8.4** In my `/usr/share/applications/` directory (using **Thunar**), there are three `.desktop` file listings that do not display the correct icon. It is interesting to note that said three `.desktop` files are the only ones in said directory that...
**Debian Buster; Xfce version 4.12; Thunar version 1.8.4**
In my
/usr/share/applications/
directory (using **Thunar**), there are three .desktop
file listings that do not display the correct icon.
It is interesting to note that said three .desktop
files are the only ones in said directory that stipulate the icon file in the below fashion (what follows are copies of each subject .desktop
file's Icon=...
line):
Icon=ca.desrt.dconf-editor
Icon=org.gnome.Evince
Icon=org.gnome.Yelp
It is also interesting to note that the correct icons appear in the **Xfce** whisker menu.
For each of these three cases, I am able to find multiple instances of the proper icons in (and only in) the /usr/share/icons/hicolor
directory. In addition, all of the non-affected .desktop
files in said /usr/share/applications/
directory specify specific icon paths or a generic icon name (e.g. Icon=xfwm4
).
I have updated the relevant icon cache (using, as root, gtk-update-icon-cache -f /usr/share/icons/hicolor/
) with no joy.
I'm currently using the **Tango** icon theme in **Xfce** and do not wish to change that setting.
I realize that, as a workaround, I could simply specify a path to the desired icon in each of the three subject .desktop
files, but am curious as to what the problem could be?
Digger
(407 rep)
Aug 6, 2025, 07:32 PM
• Last activity: Aug 6, 2025, 07:57 PM
3
votes
1
answers
3064
views
Thunar's "Open Terminal here" bug
I'm using Thunar 1.8.2 on Debian Testing and the "Open Terminal here" function seems buggy. I've set up the custom action `xfce4-terminal --working-directory=%f` with the keyboard shortcut `F4`. Oddly enough, right-click in Thunar and "Open Terminal here" always seems to work. That opens the xfce4-t...
I'm using Thunar 1.8.2 on Debian Testing and the "Open Terminal here" function seems buggy.
I've set up the custom action
xfce4-terminal --working-directory=%f
with the keyboard shortcut F4
.
Oddly enough, right-click in Thunar and "Open Terminal here" always seems to work. That opens the xfce4-terminal with the current working directory.
But with F4
it always opens the terminal with the directory I last used the right-click "Open Terminal here".
So for example, in Thunar I go to /tmp/
, right-click, "Open Terminal here", I get a Terminal with /tmp/
as the current working directory. I close the terminal, move to /home/
in Thunar, then press F4
and I get a Terminal with /tmp/
as the current working directory again.
How do I fix this behavior?
*edit:* This is the current configuration: 
GarlicCheese
(33 rep)
Jan 12, 2019, 01:14 PM
• Last activity: Jun 17, 2025, 07:07 AM
0
votes
1
answers
29
views
no djvu thumbnails on thunar with tumbler
I am no getting thumbnails for djvu when using thunar and tumbler to generate the thumbnails. I am getting thumbnails for pdf files, images and videos. Only djvu thumbnails are missing.
I am no getting thumbnails for djvu when using thunar and tumbler to generate the thumbnails.
I am getting thumbnails for pdf files, images and videos. Only djvu thumbnails are missing.
Vicfred
(294 rep)
May 21, 2025, 08:54 AM
• Last activity: Jun 4, 2025, 05:55 PM
0
votes
0
answers
51
views
sftp + thunar in Debian 12 is in a password loop
I recently bought a new laptop and installed Debian 12 + xfce environment. And I'd like to access my server (which has Debian 12) with Thunar, as I always did before. I can access my server via sftp with the command line, but when I try to access it with the address bar in thunar (e.g. sftp://user@s...
I recently bought a new laptop and installed Debian 12 + xfce environment.
And I'd like to access my server (which has Debian 12) with Thunar, as I always did before.
I can access my server via sftp with the command line, but when I try to access it with the address bar in thunar (e.g. sftp://user@server.com/) it enters in a password loop, asking for the password continuously.
Note that it should not even ask for the password, because I usually keep a ssh connection with the server and I use openssh multiplexing.
I have all gvfs packages installed (needless to say that I can enter with my old laptop having ubuntu 20.04).
Any clue? Thanks in advance for any suggestion.
Alex
Alessandro
(3 rep)
Apr 15, 2025, 06:25 PM
5
votes
2
answers
895
views
How to debug Thunar Custom Action
Some Thunar Custom Action that I thought would work (namely, opening multiple folders with Sublime Text), doesn't work. However, finding what is it that gone wrong is quite hard, since there is no output, even in terminal. What can I do to get information on a failing Thunar Custom Action?
Some Thunar Custom Action that I thought would work (namely, opening multiple folders with Sublime Text), doesn't work.
However, finding what is it that gone wrong is quite hard, since there is no output, even in terminal.
What can I do to get information on a failing Thunar Custom Action?
DrakaSAN
(473 rep)
Apr 3, 2017, 07:59 PM
• Last activity: Mar 15, 2025, 07:36 PM
8
votes
1
answers
3369
views
Can I add recent items view to Thunar Bookmarks?
In File select menu I can quickly find my most recent files. Look at the top left corner. [![File select menu, Recent bookmark][3]][3] How I can choose with file open for editing. Can I add that view to Thunar? [![Thunar view][2]][2] I know I can sort items in directory by access date. However, some...
In File select menu I can quickly find my most recent files.
Look at the top left corner.
How I can choose with file open for editing.
Can I add that view to Thunar?
I know I can sort items in directory by access date. However, sometimes when I download files, I have no idea, where have I put them :D. So that view should pull most recent user-edited files from multiple directories.


julka
(181 rep)
Sep 18, 2017, 02:46 AM
• Last activity: Mar 12, 2025, 09:18 PM
8
votes
2
answers
729
views
Can I mark files as recently-used from the command line?
GTK applications mark files as recently used by adding them to the XML in `~/.local/share/recently-used.xbel`, but I am frequently working with files from terminal-driven applications like latex, and these are not marked in the GTK list and hence not available from the "Recent" bookmark in GUI file...
GTK applications mark files as recently used by adding them to the XML in
~/.local/share/recently-used.xbel
, but I am frequently working with files from terminal-driven applications like latex, and these are not marked in the GTK list and hence not available from the "Recent" bookmark in GUI file browsers/pickers etc..
Is there a CLI command I can use to explicitly add files to the Recent list, for smoothing operations between the terminal and GUI sides of my Linux usage? Either an official way, or a fast & simple hack with the side-effect of writing to the recently-used.xbel
file!
andybuckley
(183 rep)
Mar 29, 2019, 11:42 AM
• Last activity: Feb 14, 2025, 01:37 PM
9
votes
2
answers
954
views
How do I make `ls` sort the same way Thunar sorts files?
The title is a summary of what I'm trying to achieve, but I'll give an example to illustrate what my problem is and how I've been trying to solve it. ### Example folder Let's say I've got a folder on a Linux system with the following files: `.a`, `.A`, `.b`, `.B`, `a`, `A`, `b` and `B`. ### Thunar W...
The title is a summary of what I'm trying to achieve, but I'll give an example to illustrate what my problem is and how I've been trying to solve it.
### Example folder
Let's say I've got a folder on a Linux system with the following files:
.a
, .A
, .b
, .B
, a
, A
, b
and B
.
### Thunar
When I open the folder in Thunar, my file manager of choice, the files display in this order:
.a
.A
.b
.B
a
A
b
B
This is an output that makes sense to me; first the hidden files (or directories), then sorted alphabetically (where the case is taken into account). Preferably, I'd have the upper-case files sorted before the lower-case ones, but it's not too bad.
In other words, this is the output that I'm trying to achieve with ls
.
### ls
When I want to list the files of this folder via ls
, this is what I get:
$ ls -lA
total 0
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .b
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 b
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .B
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 B
Here, the hidden files aren't sorted to the top, but the files overall are sorted in a 'sensible' alphabetical order.
### Experimenting with LC_ALL=C
and LC_COLLATE=C
A couple of solutions for sorting the hidden files to the top are to temporarily set either LC_ALL
or LC_COLLATE
to C
(I'm struggling to see the difference between the two, so an explanation there would be much appreciated):
$ LC_ALL=C ls -lA
total 0
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .B
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .b
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 B
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 b
$ LC_COLLATE=C ls -lA
total 0
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .B
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 .b
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 A
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 B
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 a
-rw-r--r-- 1 lucas lucas 0 Jan 26 14:58 b
As you can see, this does solve the hidden file problem, but the behaviour of the alphabetical sort is now inconsistent with how Thunar sorts files alphabetically.
### Questions
So this begs the question: how do I get ls
to sort in the same way as Thunar?
Preferably, I want to avoid piping ls
to another command like sort
, since I'd like to alias this new command to "ls"
itself.
And if this isn't possible, how can I get Thunar to sort files the way ls
would sort files (the LC_ALL=C
/LC_COLLATE=C
method seems nice enough to me)?
By extension, I'd like to ask what the best practices are when sorting files alphabetically. The behaviour I've just described is just what seems sensible to me, but maybe it isn't after all?
Apollucas
(93 rep)
Jan 26, 2025, 02:28 PM
• Last activity: Jan 27, 2025, 10:23 AM
2
votes
1
answers
61
views
How to run Thunar with original text when using system with different locale?
I want to ask a question related to Thunar (or even Google something), but I'm not able to see original text. I've tried to run: ```bash LC_ALL=C thunar ``` but it just creates new instance of Thunar that already run. Is changing system settings and rebooting the only way to see English language in...
I want to ask a question related to Thunar (or even Google something), but I'm not able to see original text.
I've tried to run:
LC_ALL=C thunar
but it just creates new instance of Thunar that already run. Is changing system settings and rebooting the only way to see English language in Thunar if you use different locale?
This is important when asking questions online, to show original text.
I actually wanted to ask a question here related to detection of file types in Thunar, they are In Polish (my locale). I want to see the English text for them.
jcubic
(10310 rep)
Dec 17, 2024, 09:21 PM
• Last activity: Dec 18, 2024, 01:15 PM
3
votes
1
answers
673
views
How can I create a symbolic link in Thunar?
In KDE Plasma's file manager "Dolphin" I can drag and drop a folder to any other location while holding down the `Alt` key in order to create a symbolic link to this folder in the other location, but if I do the same thing in Thunar it just copies the folder. So tell me, how can I actually create a...
In KDE Plasma's file manager "Dolphin" I can drag and drop a folder to any other location while holding down the
Alt
key in order to create a symbolic link to this folder in the other location, but if I do the same thing in Thunar it just copies the folder.
So tell me, how can I actually create a symbolic link with XFCE's file manager Thunar?
Thomas Fritz
(185 rep)
Nov 27, 2024, 01:19 PM
• Last activity: Nov 27, 2024, 02:14 PM
1
votes
1
answers
116
views
XFCE: trigger desktop's right-click "Arrange Desktop Icons" from the command line or script?
I'm trying to use XFCE with Termux on Android, and the behavior of the desktop icons is a complete mess. The size of the display is dynamic (four possible configurations when using the phone, continuous variation possible when running in a window). The desktop icons are constantly shuffling themselv...
I'm trying to use XFCE with Termux on Android, and the behavior of the desktop icons is a complete mess. The size of the display is dynamic (four possible configurations when using the phone, continuous variation possible when running in a window). The desktop icons are constantly shuffling themselves in a completely random way through successive screen size changes and its a disaster.
I'm happy with how Thunar places the dekstop icons with the "Arrange Desktop Icons" available in the desktop's right-click menu.
How do I trigger this action at login, and automatically each time the display size changes?
MRule
(249 rep)
Aug 28, 2024, 09:58 AM
• Last activity: Aug 30, 2024, 07:26 PM
0
votes
0
answers
60
views
Launching Thunar from Terminal error
I'm running Artix Linux (nonSystemD init runit) When I go to launch Thunar from the terminal - I get this error message (as of today) thunar (thunar:30519): dbind-WARNING **: 17:06:17.012: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/979/at-spi/bus_0: Permission denie...
I'm running Artix Linux (nonSystemD init runit)
When I go to launch Thunar from the terminal - I get this error message (as of today)
thunar
(thunar:30519): dbind-WARNING **: 17:06:17.012: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/979/at-spi/bus_0: Permission denied
(thunar:30519): thunar-WARNING **: 17:06:17.155: Name 'org.freedesktop.FileManager1' lost on the message dbus.
Trying to launch Caja (from Mate desktop gives me similar errors)
Any idea how to fix?
Resofactor
(1 rep)
Aug 21, 2024, 01:11 AM
0
votes
0
answers
22
views
Display .odt title property as a column on thunar
On Libreoffice Writer by going on `file>properties>description` you can change some properties of the document, such as title, type, add anotations. This is something I use a lot to organize my documents, on my Windows 10 machine I can display the title on Windows Explorer as a column, I was looking...
On Libreoffice Writer by going on
file>properties>description
you can change some properties of the document, such as title, type, add anotations. This is something I use a lot to organize my documents, on my Windows 10 machine I can display the title on Windows Explorer as a column, I was looking for a way to do this on my Xubuntu Linux machine using thunar, but I didn't find a way to do it exactly like on windows, what I have for now is a thunar custom action that runs the script:
#!/bin/bash
title=$(exiftool "$1" | grep Title | grep -o -P '(?<=: ).*(?=)')
zenity --info --title="Title" --text="$title"
But this still not the ideal for me, because I have to go file by file clicking to see the title.
Does anyone have another solution? To add a column that show the title on thunar, or other file explorer that offers this?
samueldelorenzi
(1 rep)
Aug 20, 2024, 06:57 PM
4
votes
2
answers
754
views
How to undo e.g. a move operation in Thunar on Debian?
Currently I fail to find whether it's possible to undo an operation in Thunar on Debian. For example, if I move a file using Thunar, how may I then undo this? I tried using right click on the file system or by opening the edit menu, but I can't find an "undo" option. Also Ctrl+Z does not seem to wor...
Currently I fail to find whether it's possible to undo an operation in Thunar on Debian. For example, if I move a file using Thunar, how may I then undo this? I tried using right click on the file system or by opening the edit menu, but I can't find an "undo" option. Also Ctrl+Z does not seem to work (nothing happens).
Diagathe Josué
(543 rep)
Aug 24, 2019, 08:12 PM
• Last activity: Jul 19, 2024, 10:50 PM
0
votes
0
answers
65
views
Create new "Properties" Custom-Action
I use the "Properties" option a lot for file information and it annoys me that it's right at the bottom of the Right-Click menu. I know how to create 'Custom-Actions' and that they can be moved UP or DOWN the menu list. ![Custom Actions List][1] Instead of "Run Command" I would like a "Properties" i...
I use the "Properties" option a lot for file information and it annoys me that it's right at the bottom of the Right-Click menu. I know how to create 'Custom-Actions' and that they can be moved UP or DOWN the menu list.
Instead of "Run Command" I would like a "Properties" item which I can move up the list.
Linux-Mint 21.3 (File Manager - Thunar)
I came up with this so far.
but the cannibalized code
The "stat" command is not producing data, just titles. I'd point it at the "Properties" bin file and get same result as:
but I don't think there is one. Suggestions welcomed.


yad --info --title="File Properties for %n" --text="$(echo; echo -n 'INFO-1: '
'stat' %n | awk '{print $1}'; echo; echo 'INFO-2:'
ls -l %n | awk '{print $1}')" --width=350 --height=280 --center --button=gtk-close
Only produces: 

J4ck B4ker
(1 rep)
Jun 29, 2024, 11:52 PM
• Last activity: Jul 3, 2024, 09:45 PM
0
votes
1
answers
45
views
Thunar custom actions - how to import selections into zsh script
Xubuntu 22.04 Thunar 4.16 I am working on a script that works similarly to detox but does not require root privileges as it will only be allowed to operate on files or folders in the user's home directory providing that the file itself is not hidden or that there are no hidden folders anywhere in it...
Xubuntu 22.04 Thunar 4.16
I am working on a script that works similarly to detox but does not require root privileges as it will only be allowed to operate on files or folders in the user's home directory providing that the file itself is not hidden or that there are no hidden folders anywhere in its path.
The idea here is to navigate to a given folder using Thunar and if I see a file or folder that contains, for example, either white spaces or dots used as delimiters, I could right click on the file and initiate a zsh script that would remove illegal characters, etc and output a filename in Title case with lower case extension using underscores as delimiters.
Under Edit/Configure custom actions/command I have
-terminal -e "/home/terry/bin/thunar_custom_actions/ffn.sh -- %F"
the script is, of course, executable.
The only hint I've managed to find to allow the script to import the selections is
in "$@"; do
I have also tried
in %F; do
but all I get is the terminal opening and immediately closing again.
Any hints, suggestions or ideas how I can resolve this?
Terry
(43 rep)
Mar 16, 2024, 11:55 AM
• Last activity: Mar 21, 2024, 12:45 AM
13
votes
3
answers
5317
views
Is it possible to make thunar sort by ASCII order?
I'm currently using Debian 6 with Xfce desktop, and I can't find any setting to make Thunar sort files properly; i.e., by ASCII order. I haven't been able to turn up anything via search engines either. Is there a setting in some config file somewhere that will do this?
I'm currently using Debian 6 with Xfce desktop, and I can't find any setting to make Thunar sort files properly; i.e., by ASCII order. I haven't been able to turn up anything via search engines either. Is there a setting in some config file somewhere that will do this?
Wolf
(3095 rep)
Apr 4, 2011, 12:14 PM
• Last activity: Mar 13, 2024, 09:50 AM
2
votes
1
answers
1414
views
Thunar option "Open terminal here" not always working
I am posting here in the hope someone invloved in xfce might see it. The issue is the same as what is reported [here](https://forums.bunsenlabs.org/viewtopic.php?id=3775) in 2017: > When I try the option "Open terminal here" in a folder, it only works if the whole path has no spaces or other uncommo...
I am posting here in the hope someone invloved in xfce might see it.
The issue is the same as what is reported [here](https://forums.bunsenlabs.org/viewtopic.php?id=3775) in 2017:
> When I try the option "Open terminal here" in a folder, it only works if the whole path has no spaces or other uncommon characters.
- It is also true for any actions defined in the "Custom actions" window.
- Quoting the
%f
as "%f"
in the "Custom actions" window doesn't work either, as posted/commented in
https://unix.stackexchange.com/questions/340720
xpt
(1858 rep)
Nov 17, 2021, 12:13 AM
• Last activity: Mar 7, 2024, 04:11 PM
0
votes
0
answers
75
views
Thunar warning content type loading failed
I'm running a bash script that collates and organises files before turning it into a zip. When I run the script, multiple Thunar 'warnings' and 'critials' pop that I have a hard time figuring out what they are about (see image). This occurs while the script is copying over files. It mentions a Conte...
I'm running a bash script that collates and organises files before turning it into a zip. When I run the script, multiple Thunar 'warnings' and 'critials' pop that I have a hard time figuring out what they are about (see image). This occurs while the script is copying over files.
It mentions a Content type loading error for a strangely named file that I can't place. What generates these warnings?
thunar-WARNING **: 16:45:16.720: Content type loading failed for sedVOTg4r: Error when getting information for file /path/to/file/sedVOTg4r : No such file or directory
GLib-GIO-CRITICAL **: 16:45:16.722: g_file_info_get_attribute_uint32: assertion 'G_IS_FILE_INFO (info)' failed
The script looks as follows:

#!/bin/bash
subj=$1
outBase=$2
echo $subj
echo $outBase
subj_site_list=path/to/scripts/subj_site_list.txt
######### make/check dir structure exists ########
outStudy=${outBase}/Leapeuaims_2
if [[ ! -d "${outStudy}" ]] ; then
mkdir ${outStudy}
fi
## Set matching site collection for the particular subject
site=$(awk -v search="$subj" '{gsub(/^[ \t]+|[ \t]+$/, "");} $1 == search {print $2}' "$subj_site_list" | tr -d '\r')
echo "${subj} is a ${site} participant"
echo
if [ "$site" = "University1" ]; then
outCentre=${outStudy}/University1
elif [ "$site" = "University2" ]; then
outCentre=${outStudy}/University2
elif [ "$site" = "999" ]; then
echo ">> site code 999, skipping subject $subj"
sed --in-place "/$subj/d" ./logfile.txt
echo ">> site code 999, skipping subject $subj" >> logfile.txt
echo
exit
else
echo ">> subject $subj not listed; check for withdrawn consent"
echo
fi
echo "site parameter set to $outCentre"
echo
if [[ ! -d "${outCentre}" ]] ; then
mkdir ${outCentre}
fi
## Make BOLD folder for preprocessed data
BOLD=${outCentre}/BOLD
if [[ ! -d "${BOLD}" ]] ; then
mkdir ${BOLD}
mkdir ${BOLD}/Preprocessed
fi
####### Check what subj data exists/mk dirs and copy over/rename as needed per modality #########
indir=/path/to/subject_data/$subj/
echo "Wrapping contents ${indir}"
echo
#BOLD
if ls $indir/BOLD_data/preprocessing/* 1> /dev/null 2>&1; then
subjbold=${BOLD}/Preprocessed/${subj}
mkdir $subjbold
rsdir=${subjbold}/Resting_state
mkdir $rsdir
echo "adding preprocessed resting state data"
cp -r $indir/BOLD_data/preprocessing/* $rsdir/
echo "done"
echo
else
echo ">> no preprocessed data found for $subj"
echo
sed --in-place "/$subj/d" ./logfile.txt
echo "${subj}: no fMRI data found" >> logfile.txt
fi
LifeIsGood
(1 rep)
Feb 20, 2024, 04:44 PM
• Last activity: Feb 22, 2024, 11:46 AM
10
votes
3
answers
33053
views
How to use Nautilus as default in XFCE?
I'd like to use Nautilus as default in XFCE instead of Thunar, but how can I remove full Thunar? I have already typed sudo apt-get remove thunar gvfs-backends But I still have problems because if I click on a folder in the desktop Thunar starts. Can someone help me? Thank you.
I'd like to use Nautilus as default in XFCE instead of Thunar, but how can I remove full Thunar? I have already typed
sudo apt-get remove thunar gvfs-backends
But I still have problems because if I click on a folder in the desktop Thunar starts. Can someone help me?
Thank you.
Mitro
(1101 rep)
Mar 2, 2013, 03:39 PM
• Last activity: Feb 21, 2024, 09:35 PM
Showing page 1 of 20 total questions