How do I make thumbnails in the file picker?

How do I make thumbnails in the file picker?

Other urls found in this thread:

aur.archlinux.org/packages/gtk3-patched-filechooser-icon-view/
gist.github.com/Dudemanguy911/c172394e30e1e7d0f477ad15c719bc71
developer.gnome.org/gtk3/stable/gtk-building.html
twitter.com/NSFWRedditImage

install a good os

Replace GTK with Qt.

What are you talking about?
there's thumbnails in the picture right there!

Use kde

Opensuse and Manjaro (I guess) are the only one shipping firefox with the Qt file picker by default, wich unlike the retarded gnome one, let you preview image

Sacrifice 4 virgins to Linus Torvalds.

some nig wrote a patch but I think that was only for gtk2?

drag and drop from file manager
install kde
install windows 10
install mac os

pick one

Write to the developer of the Linux filepicker Linus Torvalds and ask him to fix it.

Hello I'm the developer of the Linux filepicker Linus Torvalds, here is my pic to prove it, ask me anything

There's a gtk3 one as well.
aur.archlinux.org/packages/gtk3-patched-filechooser-icon-view/

sudo pacman -S gstreamer tumbler ffmpegthumbnailer thunar
trizen -S gtk2-patched-filechooser-icon-view gtk3-patched-filechooser-icon-view
it will still be subpar but that's just the power of l*nux

Can you use trizen as wrapper around pacman like you can do with pacaur? I need to switch AUR helpers one of these days when pacaur finally breaks.

I think so

well it applied pretty cleanly
although it seems like it has to regenerate the thumbnails each time
and it removed my size and last modified columns in list view

How? Pls teach me senpai.

I just put gist.github.com/Dudemanguy911/c172394e30e1e7d0f477ad15c719bc71 from into /etc/portage/patches and rebuild gtk+:3

I quoted the wrong post but yeah

I haven't tried investigating it thoroughly, but GtkIconView doesn't render icons nearly as quickly as gtk2 does. I don't think the thumbnails are regenerated, I think they just load slowly in gtk3. I'm also pretty sure the popover doesn't work properly in both views which is why the other columns break. One of these days, I'll probably just switch it to a popup menu since the chances of something like this getting merged upstream is almost nil.

>and rebuild gtk+
By following this steps, I presume?
developer.gnome.org/gtk3/stable/gtk-building.html
Sorry I'm still new to linux.

Step 1: stop using GTK

I suppose users of most distros would have to do it that way
gentoo compiles pretty much all packages so I just added the patch where the package manager looks for patches, and making portage (the package manager) rebuild gtk+ applied the patch

It's not hard to do, but if you're totally new, building something like gtk from source isn't exactly a cakewalk. You would have to check out the proper branch after cloning the repo, apply the patch, configure the build to match your distro's settings and then compile and install it. You might also prefer making a package out of it so it's tracked by your package manager.

You don't need this feature

Stop browsing Sup Forums GNOME.

Give me 25 reasons why you need this feature.

was meant for

Welp, I'll just wait till they put it in the stable release, then. Or change to KDE, maybe?

Each anime girl I quickly post is a reason.

>Welp, I'll just wait till they put it in the stable release
It won't ever happen. It was rejected for being 'too slow.'

I have no idea if kde-anons are just memeing or if kde actually makes (gtk)applications like firefox use qt.

I do not know but my guess is only the few distributions where they actually patch all the stuff uses qt I tried applying the same patches (the kde ones) myself but it was pretty buggy for me with firefox sometimes freezing while the filechooser was open etc

Is it only firefox or other browsers do it too?

I haven't used the QT firefox patch in years, but I also recall it being very buggy and sometimes randomly freezing. Plus it only fixes the dialog in firefox. There are other applications where a feature would be very handy (like GIMP). Personally I prefer just patching gtk even though it has some downsides too.

Firefox is built on gtk so you're stuck with it. IIRC, chromium's dialog can use gtk or XUL but not KDE's dialog.

I tried opera and it used the gtk one too

Thanks for creating Linux and for all the techtips.

I might just set it to 64 or something and call it a day for the next 10 years while I wait for the gtk devs to fix their stuff

>nano

Iam sure this will come back and bite me in some specific use case but
I am happy with what I got compared to the time investment spent

maybe even try to add a toggle between 16 and 64

gtk/gtkfilechooserwidget.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 09a119049c..d9f821a8ce 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -432,7 +432,7 @@ enum {
#define DEFAULT_RECENT_FILES_LIMIT 50

/* Icon size for if we can't get it from the theme */
-#define FALLBACK_ICON_SIZE 16
+#define FALLBACK_ICON_SIZE 256

#define PREVIEW_HBOX_SPACING 12
#define NUM_LINES 45
@@ -3739,7 +3739,7 @@ change_icon_theme (GtkFileChooserWidget *impl)
profile_start ("start", NULL);

if (gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height))
- priv->icon_size = MAX (width, height);
+ priv->icon_size = 256; //MAX (width, height);
else
priv->icon_size = FALLBACK_ICON_SIZE;


I am too dum to use vim :c

there's an AUR package that makes it just as easy as installing anything else if you're on an arch-based distro

Drag and drop from you're file manager.

>miss the tiny region
>all your text entry on the page disappears as your browser opens the image in full view

Posting the right anime girl is important.