1

When I use zenity and type --file-selection, if spawns the default GTK file selector. The problem with that is, of course, the lack of image thumbnails. Considering that I want to make an image selection like that, it is a bit of a downside.

Is there a possibility to force zenity to use something like nemo or nautilus as its file selector?

Or something like qarma (it is a qt based rewrite of zenity). Can also be yad etc.

Anyone got any alternatives?

2 Answers 2

2

try yad --file --add-preview --large-preview

in this mode when you select image or any previously thumbnailed file a preview widget appears at the right of the file list

2
  • Cheers. It kinda works, but not ideal, as one can not view many pictures at once etc. Still, better than nothing.
    – I.P
    Commented Nov 21, 2022 at 12:04
  • 1
    if you need an image-only selector you can write your own. this is a proof of concept - pastebin.com/JjZB3VSB Commented Nov 23, 2022 at 21:53
1

As a programmer, you open a file selection dialog by calling the appropriate function from your GUI toolkit – in the case of zenity, that'd be GTK's file chooser. So, no: you cannot change that.

3
  • Thank you for the replay. Do you know if any similar program (such as yad or qarma) allow for that?
    – I.P
    Commented Jul 18, 2022 at 23:44
  • Since neither nemo nor nautilus are file selector dialogs, I'm afraid I don't Commented Jul 19, 2022 at 6:09
  • Thank you for the answer, Have a nice day :)
    – I.P
    Commented Jul 19, 2022 at 19:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .