Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
4
votes
4
answers
3093
views
Prevent MATE from launching Caja Desktop when running i3
A while back I installed i3 on my MATE box, and I'm quite happy with it, however despite disabling Caja Desktop (`x-caja-desktop`) when setting i3 as the default window manager through dconf editor, every time I install a .deb package via the gui installer, the desktop "window" opens and overlays my...
A while back I installed i3 on my MATE box, and I'm quite happy with it, however despite disabling Caja Desktop (
x-caja-desktop
) when setting i3 as the default window manager through dconf editor, every time I install a .deb package via the gui installer, the desktop "window" opens and overlays my entire screen.
This is incredibly annoying, and hitting super-shift-q
to close the window doesn't work, which forces me to just move it to an unused workspace.
Is there anything I can do to stop this from happening without installing a different file manager?
Electric Coffee
(413 rep)
Apr 26, 2016, 10:21 AM
• Last activity: Jul 15, 2025, 04:47 AM
0
votes
1
answers
40
views
How to start caja using just left half screen with --geometry?
I use `caja` often with two windows open at the same time, each exactly half the screen. By default, `caja` opens with a window a bit to the right, not exactly half the screen. The next `caja` opens a window on top. However, if the first `caja` window is reduced to half the screen to the left, the n...
I use
caja
often with two windows open at the same time, each exactly half the screen.
By default, caja
opens with a window a bit to the right, not exactly half the screen. The next caja
opens a window on top. However, if the first caja
window is reduced to half the screen to the left, the next opens in the right half.
Thus, how do I have the default location for the first caja
open to the left half of the screen? I experimented with caja --geometry=960x1080 .
(half my screen in pixels), but it was not doing what I wanted.
Two questions:
1. What is the correct geometry value for a screen 1920 by 1080?
2. How do you have caja
open in the top left corner?
user855443
(153 rep)
Nov 26, 2024, 10:24 AM
• Last activity: Nov 26, 2024, 01:39 PM
1
votes
0
answers
71
views
change the font size of the bottom bar of caja windows only
How can I change the size of the font in the bottom bar of caja windows without changing the global "Application font"? I mean the font that says how many items there are in a given folder and how much space is left on a given device: see the screenshot: [
ApplicationFont.size - 3
or something like that). I would like to increase its size to match the normal size of "Application font". I'm guessing this will require editing some theme config file, but I have no idea what file exactly nor what the key for this specific font could possibly be...
morgwai
(141 rep)
Jul 26, 2024, 11:02 AM
16
votes
4
answers
24287
views
Mounting LUKS from the command line
When in `nautilus` or `caja` I click on the icon of an encrypted disk and enter my password, the underlying block device gets mapped to `/dev/mapper/luks-$UUID` and it gets mounted at`/media/$USER/$DISK`, no root password required. Is there a way to invoke this process from the command line, without...
When in
nautilus
or caja
I click on the icon of an encrypted disk and enter my password, the underlying block device gets mapped to /dev/mapper/luks-$UUID
and it gets mounted at/media/$USER/$DISK
, no root password required.
Is there a way to invoke this process from the command line, without GUI,
including obviating sudo and having the mountpoint able to get unmounted again from GUI.
Petr Skocik
(29590 rep)
Mar 6, 2015, 08:36 AM
• Last activity: May 22, 2023, 08:10 PM
4
votes
1
answers
3979
views
caja is not mounting smb shares
Recently, caja refuses to "mount" smb locations for which it previously gave no complaint. Usually, I would access various share points using caja by typing `smb:// / ` in the `Location` text-box. When the credentials dialogue window opened, I would type my username, domain and password as appropria...
Recently, caja refuses to "mount" smb locations for which it previously gave no complaint. Usually, I would access various share points using caja by typing
smb:///
in the Location
text-box. When the credentials dialogue window opened, I would type my username, domain and password as appropriate for the company. Usually, this was sufficient but no longer.
Now, I do that same process and the dialogue window immediately re-appears asking for the same information. It simply will not take the credentials. I can mount the same share point using mount
from the command line, using the exact same credentials, without issue: sudo mount -t cifs -o credentials=,uid=andy ///
. What might be causing this? Oh, also, where would caja be writing its logs? I can't find anything relevant in dmesg
and listing the contents of /var/log
wasn't as fruitful as I'd hoped.
Andrew Falanga
(531 rep)
Apr 26, 2016, 10:31 PM
• Last activity: Apr 21, 2023, 05:34 PM
6
votes
2
answers
9128
views
Add custom menu action to Caja file manager
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with sudo apt install caja-actions But it doesn't seem to work, as indicated [here][1]. In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubun...
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with
sudo apt install caja-actions
But it doesn't seem to work, as indicated here .
In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).
How to create such actions manually?
---
This is posted in order to provide an answer.
user32012
Mar 16, 2018, 11:58 PM
• Last activity: Jan 29, 2023, 10:16 PM
2
votes
3
answers
3865
views
how to add a folder to Places in caja?
In caja it seems there is no way to add a folder to the Places menu. I tried caja help menu > F1 but didn't get anywhere. Any help would be appreciated. This is in caja 1.20.0 [![Partial image of Places in caja ][1]][1] [1]: https://i.sstatic.net/p46Sp.png
In caja it seems there is no way to add a folder to the Places menu. I tried caja help menu > F1 but didn't get anywhere. Any help would be appreciated.
This is in caja 1.20.0

shirish
(12954 rep)
Mar 30, 2018, 02:32 PM
• Last activity: Oct 14, 2022, 05:35 PM
1
votes
1
answers
116
views
manipulate icon-position of samba-shares on caja-desktop
I know how to manipulate the position of desktop icons with the ```gio set``` command ```gio set -t string '/home/user/Schreibtisch/example' 'metadata::cajas-icon-position' '500,500'``` But this does not works with samba-shares. I also can't find the samba-shares in ```~.local/share/gvfs-metadata/``...
I know how to manipulate the position of desktop icons with the
set
command
set -t string '/home/user/Schreibtisch/example' 'metadata::cajas-icon-position' '500,500'
But this does not works with samba-shares. I also can't find the samba-shares in ~.local/share/gvfs-metadata/
(where are external drives)
How dows one manipulate the Icons of samba-shares on Caja Desktops with gio?
Sven
(11 rep)
Jul 20, 2021, 08:20 AM
• Last activity: Jun 1, 2022, 05:17 PM
0
votes
1
answers
985
views
when mounting an .img via fstab, it shows duplicate in file manager (Ubuntu Mate 20.04.3)?
I have done [these procedures][1] to mount my .img file in `/etc/fstab` (for ubuntu mate 20.04 x64) [Create `.img` file][2]: ``` dd if=/dev/zero of=filename.img bs=1024 count=2M sudo mkfs.ext4 filename.img ``` Note: also be done with gparted with [this method][3] **The problem:** [Mount `/etc/fstab`...
I have done these procedures to mount my .img file in
if i try to click on this other drive showing unmounted i get the following message:
Why doesn't it just show the fileimage.img image mounted in the vdisk folder?
**I would like you to help me fix the
launchpad report
github issue
Reference
/etc/fstab
(for ubuntu mate 20.04 x64)
Create .img
file :
dd if=/dev/zero of=filename.img bs=1024 count=2M
sudo mkfs.ext4 filename.img
Note: also be done with gparted with this method
**The problem:**
Mount /etc/fstab
in /mount/point
:
/home/user/filename.img /home/user/vdisk ext4 defaults 0 0
# or
/home/user/filename.img /home/user/vdisk ext4 loop 0 0
# or
/home/user/filename.img /home/user/vdisk auto loop 0 0
But always show 2 units: vdisk (mount) and loop (not mount) (see image)


fstab
line so that two units do not appear when mounting .img
but only one**
**Update:**
if I run any of the following commands:
sudo mount -a
# or
sudo mount /home/user/vdisk
The same thing that I describe in my post appears.
My fstab (I have altered the UUID for security reasons):
# / was on /dev/sda2 during installation
UUID=9f92d1aa-458d-441a-b349-abcdefghijkl / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=F798-ABCD /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/home/user/filename.img /home/user/vdisk ext4 defaults 0 0
List:
sudo losetup --list | grep filename.img
/dev/loop8 0 0 1 0 /home/user/filename.img 0 512
**Important:**
But, if I remove the /etc/fstab
line, delete /dev/loop8
and mount .img
image manually (with the followings commands), the described error does not appear
sudo mount -o loop /home/user/filename.img /home/user/disk
# or
sudo mount -t ext4 -o loop /home/user/filename.img /home/user/disk
**Workaround:**
1. manually
mount .img
manually to /dev/loopXX
available:
losetup -f
/dev/loop8
sudo losetup -P /dev/loop8 filename.img
sudo losetup -l
/dev/loop8 0 0 0 0 /home/user/filename.img 0 512
edit /etc/fstab
and put the line:
# /path/to/loop/device /path/to/mount/point auto loop 0 0
# example:
/dev/loop8 /home/user/disk ext4 defaults 0 0
and:
sudo mount -a
Note: this method is not permanent
2. bash script:
#!/bin/bash
mount -o loop /home/user/filename.img /home/user/disk
# sudo crontab -e
@reboot ./mount-img.sh
Another bash to mount/umount .img
HERE (can be programmed in crontab to start with the system)
3. with bindfs
:
sudo mkdir /mnt/disk
# edit fstab and add line:
/home/user/filename.img /mnt/disk ext4 defaults 0 0
sudo mount -a
sudo -u user bindfs -n /mnt/disk /home/user/disk
**Summary:**
- There is no error
- The image is mounted (manually and with fstab)
**About mount:**
When mounting the .img
in fstab
, it appears **duplicated** (one is mounted and the other is not). This does not happen when mounting the .img
manually or /dev/loopXX
in fstab
**Update New:**
This appears to be a bug in Ubuntu Mate 20.04.3. In Ubuntu version 20.04.3 this problem is not present.
**testing file managers:**
affects:
- caja
- nemo
- thunar
does not affect:
- dolphin
- nautilus

acgbox
(1010 rep)
Sep 23, 2021, 08:54 PM
• Last activity: Nov 2, 2021, 10:47 PM
4
votes
2
answers
3769
views
Where does caja put its preferences
I am running/using mate 1.20.2 amd using caja as my file and folder explorer (GUI-based) . I have tried to figure out where caja puts it preferences but have failed. $ caja --version MATE caja 1.20.2 I tried to first see in .config/caja if it has what I'm looking for - ~/.config/mate$ ls eom panel2....
I am running/using mate 1.20.2 amd using caja as my file and folder explorer (GUI-based) .
I have tried to figure out where caja puts it preferences but have failed.
$ caja --version
MATE caja 1.20.2
I tried to first see in .config/caja if it has what I'm looking for -
~/.config/mate$ ls
eom panel2.d
Neither of the two folders had anything interesting contents.
Then I tried -
:~/.cache/mate$ ls
background
and even there I couldn't find any info.
I also looked at
dpkg -L caja
and saw /usr/share/metainfo/caja.appdata.xml
but could not find anything which explains where it might be.
Even the F1 built right in caja doesn't tell anything .
Can somebody help to find out where it is ?
shirish
(12954 rep)
May 14, 2018, 09:18 PM
• Last activity: Jun 5, 2020, 05:08 PM
0
votes
1
answers
258
views
How can I create a shortcut on the left side in Caja (CentOS7)
I run [Caja](https://www.google.com/search?q=Caja+File+Manager&oq=Caja+File+Manager&aqs=chrome..69i57j0l6j69i60.2323j0j4&sourceid=chrome&ie=UTF-8) on CentOS7 and wondered if I could add a shortcut down the left side to a folder (acting as a (network)drive) or replace the 'Desktop', 'Documents' etc....
I run [Caja](https://www.google.com/search?q=Caja+File+Manager&oq=Caja+File+Manager&aqs=chrome..69i57j0l6j69i60.2323j0j4&sourceid=chrome&ie=UTF-8) on CentOS7 and wondered if I could add a shortcut down the left side to a folder (acting as a (network)drive) or replace the 'Desktop', 'Documents' etc. shortcuts down the left side with my own shortcuts and/or rename them.
Thanks
ekv_56
(57 rep)
May 30, 2020, 09:06 AM
• Last activity: May 31, 2020, 07:09 PM
0
votes
1
answers
1330
views
Run an executable file from Caja
As a new Linux "superuser" trying to migrate from Windows 7 I have resisted asking basic questions that can be answered by searching, but I am stuck on this. When I create an executable file from C with gcc in the Linux terminal, called say `hello.exe` it is given `X` permission. Then from the termi...
As a new Linux "superuser" trying to migrate from Windows 7 I have resisted asking basic questions that can be answered by searching, but I am stuck on this.
When I create an executable file from C with gcc in the Linux terminal, called say
hello.exe
it is given X
permission. Then from the terminal I can run ./hello.exe
no problem.
But when I try to run it from Caja it just shows its components as a text file. I can, however, select "Run as administrator" but then I have to enter my login password.
This is irrespective of which of these two settings is enabled:
- Run executable text files when they are opened.
- View executable text files when they are opened.
I leave it as the second setting though, otherwise I get asked what I want to do every time I view or edit a text file.
I have tried to launch Caja from the terminal with sudo caja
(needs password) but then, Caja won't run the executable *at all* because the Run option is no longer there.
How can I run an executable from Caja directly: with a double-click?
Edit: Can you run an executable from *any* file manager with a simple double-click?
Edit 2: Now running Mint Cinnamon with Nemo file manager but the question is basically the same. Am I missing some setting that allows an executable to be run directly?
Edit 3:
During my research I found
[**GNOME Is Removing the Ability to Launch Binary Apps from Nautilus**](https://www.omgubuntu.co.uk/2018/05/nautilus-remove-ability-launch-binaries-apps) :
> "Or, to put it another way, you won’t be able to double-click on programs, scripts or apps to launch them using Nautilus." (*May 2018*)
And as I suspect that the file manager authors develop them as derivatives of open source code (or perhaps use common system components), perhaps none of them now do.
I also found this Wikipedia page [Comparison of file managers](https://en.wikipedia.org/wiki/Comparison_of_file_managers) has various tables. The one called [File features](https://en.wikipedia.org/wiki/Comparison_of_file_managers#File_features) has the last column as "Run executable files" so I tried out several of those file managers.
- *None* of them would run an executable file which I have compiled (and some of them won't even allow easy access to my work drive – which is never the system drive).
But anyway, I have discovered an easy work-around for now, which is that my favourite text editor Geany will run an executable of the current source file, if it exists, from a single click or F5 keypress, without making it into a project.
Weather Vane
(101 rep)
Apr 11, 2020, 05:32 PM
• Last activity: Apr 18, 2020, 12:03 PM
0
votes
1
answers
278
views
Tweak default permissions in CAJA browser
Newly created files and directories with the CAJA browser (e.g. in MATE desktop in Debian 9) seem impervious to whatever umask setting you set in /etc/profile. Where can I change the default permissions of the newly created files and directories by the CAJA browser?
Newly created files and directories with the CAJA browser (e.g. in MATE desktop in Debian 9) seem impervious to whatever umask setting you set in /etc/profile.
Where can I change the default permissions of the newly created files and directories by the CAJA browser?
Mephisto
(1117 rep)
Feb 3, 2020, 08:12 PM
• Last activity: Feb 4, 2020, 12:57 PM
1
votes
1
answers
6112
views
How do you add “open in terminal” to the right-click mouse menu for folders/directories for caja?
I know about that [question](https://askubuntu.com/questions/117452/how-do-you-add-open-in-terminal-to-the-right-click-mouse-menu-for-folders-dire), but how to do this in caja ?
I know about that [question](https://askubuntu.com/questions/117452/how-do-you-add-open-in-terminal-to-the-right-click-mouse-menu-for-folders-dire) , but how to do this in caja ?
stackflow
(111 rep)
Nov 11, 2017, 03:54 PM
• Last activity: Jan 3, 2020, 02:01 PM
3
votes
1
answers
1149
views
How to edit Caja's / Nautilus' "open with list"?
Due to testing several programs I've ended up with a lot of entries on Caja's "open with list" menu when opening files. How does one edit that list in order to remove undesired entries?
Due to testing several programs I've ended up with a lot of entries on Caja's "open with list" menu when opening files. How does one edit that list in order to remove undesired entries?
user329296
Feb 27, 2019, 09:47 PM
• Last activity: Oct 29, 2019, 02:45 AM
0
votes
1
answers
325
views
Disable caja terminal
Caja has a tendency of leaving zombie terminal processes behind, which is a nuisance when working with removable media. Caja pops up when the media is inserted, but then it is impossible to unmount and eject media as the zombie bash has an open handle on it. Is it possible to disable the terminal pa...
Caja has a tendency of leaving zombie terminal processes behind, which is a nuisance when working with removable media. Caja pops up when the media is inserted, but then it is impossible to unmount and eject media as the zombie bash has an open handle on it. Is it possible to disable the terminal part of caja permanently?
user367417
(1 rep)
Aug 17, 2019, 12:24 AM
• Last activity: Aug 17, 2019, 01:22 AM
2
votes
0
answers
279
views
Mate/Caja: Disabling recursive file search in caja's "open/save file" dialogs
I'm using **Ubuntu Mate 19.04 Disco**, using **MATE Caja 1.20.3**. Recently after a system update (think from **18.10** to **19.04**) the behavior of the open file/close file GTK dialogs changed: When I typed something previously there, it searched within the local directory and that only. Now it se...
I'm using **Ubuntu Mate 19.04 Disco**, using **MATE Caja 1.20.3**.
Recently after a system update (think from **18.10** to **19.04**) the behavior of the open file/close file GTK dialogs changed:
When I typed something previously there, it searched within the local directory and that only.
Now it searches recursively, annoyingly not even displaying local matches on the very top and it annoys me tremendously.
However, I do not know what this official "deep search" feature is called so I cannot seem to find the correct terms to disable it.
What is this called and how can I shut it off?
Jonas Mechtheim
(147 rep)
Jul 29, 2019, 01:45 PM
• Last activity: Jul 29, 2019, 03:57 PM
0
votes
1
answers
75
views
Script alternative of GUI command executed on login - it should not
Since my main data is not in `$HOME`, I have made a small (executable) script to start the GUI file manager (`caja`) in the desired directory and put it in my local executable directory (`~/.local/bin`): #!/bin/bash /usr/bin/caja /datadir To supersede the standard command `caja`, the script has the...
Since my main data is not in
$HOME
, I have made a small (executable) script to start the GUI file manager (caja
) in the desired directory and put it in my local executable directory (~/.local/bin
):
#!/bin/bash
/usr/bin/caja /datadir
To supersede the standard command caja
, the script has the same name and the path to my local executables is listed first in my ~/.profile
:
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
Works fine so far, BUT whenever I log in the file manager is opened by default. No session saving is activated, no other executable from that directory is executed (tried a few echo
-scripts and even other GUI commands).
How can I suppress this behaviour?
Using MATE as DE on Debian 10 (testing)
FelixJN
(14014 rep)
May 21, 2019, 08:51 AM
• Last activity: Jul 4, 2019, 10:22 AM
3
votes
1
answers
277
views
Set custom application for file comparison in caja
How can I set custom application which is being invoked when I press "Differences" button in "File Conflict" dialog? [![File Conflict Dialog][1]][1] I did not find corresponding option in "File Management Preferences". I did not find it using "dconf Editor" in `org.mate.caja.*`. I did not find it in...
How can I set custom application which is being invoked when I press "Differences" button in "File Conflict" dialog?
I did not find corresponding option in "File Management Preferences".
I did not find it using "dconf Editor" in

org.mate.caja.*
.
I did not find it in files located at /usr/share/caja
and ~/.config/caja
.
Where is this option being stored at?
Egor Skriptunoff
(668 rep)
Mar 26, 2017, 09:19 PM
• Last activity: Jun 20, 2019, 11:48 AM
1
votes
1
answers
904
views
Where does Caja save folder state and icon?
I'm using icons to categorize my folders but sometimes I move the icons to a more appropiate place so the next time I load the folder, the folder icon isn't set. Could I edit manually (replace text) the folder configuration to avoid searching its icon again? Where are those files? Could I edit also...
I'm using icons to categorize my folders but sometimes I move the icons to a more appropiate place so the next time I load the folder, the folder icon isn't set. Could I edit manually (replace text) the folder configuration to avoid searching its icon again? Where are those files? Could I edit also view mode for a certain folder manually (changing a value inside a file)?
user329296
Feb 27, 2019, 11:54 PM
• Last activity: May 19, 2019, 11:46 PM
Showing page 1 of 20 total questions