Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-31 01:14:14

callmejoe
Member
Registered: 2019-11-19
Posts: 75

[solved] ristretto - how to disable recently used file list

google not much luck.  anyone know how? thanks

Last edited by callmejoe (2022-01-31 04:50:31)

Offline

#2 2022-01-31 03:02:43

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [solved] ristretto - how to disable recently used file list

What do you mean specifically? Is it the one that shows thumbnails after opening a file (called Thumbnail Bar)? Or the one that appears after clicking on Open an image?

If it's the former, you can disable it in the View menu or by pressing Ctrl+M.

If it's the latter, it's Gtk.FileChooser. You can try changing this setting via two methods:

  1. Change its startup mode from 'recent' to 'cwd'.

    gsettings set org.gtk.Settings.FileChooser startup-mode 'cwd'
  2. Append a couple of lines to ~/.config/gtk-3.0/settings.ini. If the file doesn't exist, simply create it.

    [Settings]
    gtk-recent-files-enabled = 0

Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2022-01-31 03:54:05

callmejoe
Member
Registered: 2019-11-19
Posts: 75

Re: [solved] ristretto - how to disable recently used file list

KBar wrote:

What do you mean specifically? Is it the one that shows thumbnails after opening a file (called Thumbnail Bar)? Or the one that appears after clicking on Open an image?

this is what i wanted disabled.
  s4e5IjZl.png

and this one worked nicely. thanks!

Append a couple of lines to ~/.config/gtk-3.0/settings.ini. If the file doesn't exist, simply create it.

[Settings]
gtk-recent-files-enabled = 0

but should i assume now that all gtk apps' recent file lists will be disabled?

Last edited by callmejoe (2022-01-31 03:55:18)

Offline

#4 2022-01-31 04:00:11

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [solved] ristretto - how to disable recently used file list

callmejoe wrote:

this is what i wanted disabled.

It's not possible to do that easily. You have two options: a) modify the code and recompile; b) resort to gtk.css. The second option may be ugly and may potentially lead to an undesirable, broken behavior.

but should i assume now that all gtk apps' recent file lists will be disabled?

Correct. There is currently no way to disable GtkFileChooserDialog for individual apps.

Let me check what else can be done, but if I were you I wouldn't get my hopes high.

Last edited by KBar (2022-01-31 04:00:46)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#5 2022-01-31 04:06:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [solved] ristretto - how to disable recently used file list

You can use the "Clear Private Data" menu option to clear the recently used list for Ristretto. It's not the same as disabling, but you can quickly clear it.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2022-01-31 05:01:35

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [solved] ristretto - how to disable recently used file list

callmejoe wrote:

and this one worked nicely. thanks!

It didn't work for me but maybe also try creating a folder in ~/.config/ristretto and name it gtk-3.0. Change into it and create an empty file named settings.ini. Paste

[Settings]
gtk-recent-files-enabled = 0

into this newly created file and log back in. As a result,

cat ~/.config/ristretto/gtk-3.0/settings.ini

should print it to standard output.

If it works, remove those two lines from the system-wide settings.ini file, i.e. the one in ~/.config/gtk-3.0.

Last edited by KBar (2022-01-31 05:04:53)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 553.38 KiB (Peak: 554.66 KiB) ]