I don't know of a single-command way to do this. The GUI programs are doing a fair bit of interrogation of the disk to take the "right" approach and you'll need to do some of that work yourself. You don't need sudo, though, and I think the resulting sequence of events is relatively painless.
The Short Answer
Use udisksctl from the udisks2 package:
This command work fine for me:
dbus-send --session --type=method_call --dest="org.freedesktop.FileManager1" "/org/freedesktop/FileManager1" "org.freedesktop.FileManager1.ShowItems" array:string:"file:///etc/hosts" string:""
Another method besides what @christian mentioned that does not require config file edit is to add the folder as a bookmark:
Step into the folder you would like to add
Bookmarks -> Add Bookmark
After you added a folder to the bookmarks, you will be able to drag-and-drop additional folders by dropping them on the Bookmark label.
in your home folder, inside .config theres a file called user-dirs.dirs, just edit that file to your liking. Heres a copy of mine
The thumbnails are likely cahced in ~/.cache/thumbnails - if Caja uses GnomeDesktopThumbnailFactory or is based on some similar code.
A bit more detail here.
The thumbnail name is a md5 hash of the file path; file:// + full path
find ~/.cache/thumbnails -name "$(printf "%s" "$file" | md5sum | cut -d' ' -f1)*"
Where file is
I am not sure if you are hell bent on getting the image that your thumbnail displays or you just want to get "one" frame out of the video to identify it but if your desire is the latter, may I suggest using cvlc, which is the command line interface of vlc for Linux. After you install it, it can very easily extract frames out of mp4 videos (may be other ...
Loop mount of simple image file via `/etc/fstab'
In a test system of Ubuntu Server 20.04.3 LTS I created an image file similar to yours,
$ dd if=/dev/zero of=file.img bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 5.90297 s, 178 MB/s
$ sudo mkfs.ext4 file.img
[sudo] password for tester:
mke2fs 1.45.5 (07-...
Yes, you can run an executable from a file manager such as Caja.
Say you have a file hello.c in the home directory /home/User containing a simple "hello, world" program with no GUI, such as:
and the program is compiled by running gcc -o hello hello.c to generate an executable file ...
caja is not only a file manager, but also manages a few desktop settings, e.g. desktop symbols (link). Thus it will be executed when starting a MATE session. This seems unavoidable for a proper MATE session startup.
Same goes for natuilus in gnome.
A quick-and-dirty solution would be to name your script something else, have a script create a symlink (named ...
right click on the file
click on "Open with another application"
right click on the association you want to remove
click on "Forget association"
The information is saved in ~/.config/mimeapps.list
And is shared also with Files and other programs. So you can use Files to edit those associations too and they will work in Caja.
Sorry, this is a long answer. I hope you learn something from it, but I tried to most directly answer your question in the next paragraph and then use the rest of the answer to elaborate on what this means for editing settings outside the caja GUI itself.
A lot of caja's info and settings can usually be found stored in a dconf GVariant database (a binary ...
Do you have meld installed? If so, the "Differences..." button is provided as part of meld's integration. To change the application invoked would apparently require uninstallation of meld (in which case the "Differences..." button will no longer be present) and installation of a custom application designed to similarly integrate with caja.
Bit of background....
You can create it with the launcher UI shown, and then edit the resulting ~/Desktop/*.desktop file yourself to add a Path=... line. What doesn't work is if you put Exec=prog_name rather than duplicating the whole path. So it has to look like:
I'm not sure about selecting the file, but you're telling caja to open file $filename, when what you really want to do is to open the directory that contains $filename.
So instead do this:
$ caja ~/Documents/Images
However as I stated, this will not select a particular file. That capability does not appear to be present in Caja.