Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change gtk file chooser to pcmanfm-qt ? #1314

Closed
ildar-ceo opened this issue Jun 24, 2017 · 14 comments
Closed

How to change gtk file chooser to pcmanfm-qt ? #1314

ildar-ceo opened this issue Jun 24, 2017 · 14 comments
Projects

Comments

@ildar-ceo
Copy link

Hello!

How I can change save and open dialog in firefox browser to pcmanfm-qt ?
The firefox use GtkFileChooserDialog, but i can't find how I can change it to pcmanfm.

I try to execute:

xdg-mime default pcmanfm-qt.desktop application/x-gnome-saved-search
xdg-mime default pcmanfm-qt.desktop x-directory/normal
xdg-mime default pcmanfm-qt.desktop x-directory/gnome-default-handler
xdg-mime default pcmanfm-qt.desktop x-scheme-handler/file
xdg-mime default pcmanfm-qt.desktop inode/directory

But it didn't help.

@tsujan
Copy link
Member

tsujan commented Jun 24, 2017

Contrary to KDE, LXQt doesn't provide any file dialog but uses the default Qt one.

Firefox should have a config key for that dialog in its about:config but I don't remember its name.

Anyhow, this is a Firefox question and you could google for it.

@tsujan tsujan closed this as completed Jun 24, 2017
@ildar-ceo
Copy link
Author

ildar-ceo commented Jun 24, 2017

Anyhow, this is a Firefox question

I do not think so. The chrome have the same problem.
Two weeks ago Firefox and Chrome use pcmanfm, but something happened and save dialog was changed.
And I still can not to restore the old settings.

@tsujan
Copy link
Member

tsujan commented Jun 24, 2017

Two weeks ago Firefox and Chrome use pcmanfm

They didn't use "pcmanfm" but the old dialog -- as I said, pcmanfm-qt provides no file dialog -- and after the update, they use the new gtk3 dialog.

@ildar-ceo
Copy link
Author

Why then in KDE was another save file dialog, and when I installed lxqt the save file dialog have been changed?

@ildar-ceo
Copy link
Author

ildar-ceo commented Jun 25, 2017

I'm something understand.
I create python script http://python-gtk-3-tutorial.readthedocs.io/en/latest/dialogs.html#id2
And I got two different result:
Screenshot dialog from python script
Screenshot dialog from Geany
Why it's different?

@ildar-ceo
Copy link
Author

I understand!

Chrome and firefox use Gtk3.
Geany use Gtk2.
Kate, vlc use Qt.

The Gtk3, Gtk2, Qt have different dialogs.
It's wrong if aplications have different design.
How to force use same file open/save dialog?

@agaida agaida added this to test in Issues Aug 11, 2018
@palikacska
Copy link

palikacska commented Feb 4, 2019

GTK3 file dialog (aka. gtk3-file-chooser) is bloated, slow thus completely unusable particularly on low-end computers like old laptops and microcomputers like Raspberry PI where lightweight DEs like LXQt is preferred. It has been dumbed down even compared to the GTK2 version. It can't even remember the order of bookmarks, they always appear in random order, forces annoying animations, forcibly uses uncolored unrecognizable wireframe icons and pushes the tablet/smartphone feeling down your throat which is among the single most unwanted things that you would expect on a desktop computer. It starts with a black flash spectacular enough to know that it has been implemented in the worst, most hackish, dysfunctional, unprofessional way. There are a bunch of reasons not to use that dysfunctional pile of shit.

Unfortunately, idealist Google and Firefox developers have chosen the Gtk3 menace to integrate with but fortunately enough the Gtk3 library provides a way for the desktop environment to use an alternative file dialog. Theoretically this is possible via GtkFileChooserNative. As far as I know Google Chrome and Firefox use this call to display a file dialog. That's why under KDE they display the KDE File Chooser.

It would be great if this could be implemented somehow into LXQt to provide pcmanfm-qt or some Qt-based file dialog in place of the well ruined Gtk3 File Chooser.

@tsujan
Copy link
Member

tsujan commented Feb 4, 2019

it would be great if this could be implemented somehow into LXQt to provide pcmanfm-qt or some Qt-based file dialog in place of the well ruined Gtk3 File Chooser.

It seems you don't use LXQt. This page is old and LXQt has had its own file dialog for a long time.

@stefonarch
Copy link
Member

stefonarch commented Feb 4, 2019

I'd like never to see again GtkFileChooserDialog so if LXQt could force somehow firefox, brave (chromium) and thunderbird using it's own file dialog...

@tsujan
Copy link
Member

tsujan commented Feb 4, 2019

No one could make Firefox, Chromium,.. use the native Qt file dialog except for their devs ;)

The Qt platform integration can provide a "native file dialog" -- as in LXQt and KDE -- and all Qt apps will use it if they don't enforce the non-native Qt file dialog but GTK apps are different. Old versions of Firefox could use it with a trick but that's not the case anymore.

BTW, this reminds me of a feature missing from LXQt file dialog: file filtering. It shouldn't be hard to implement and would be very useful; I'll open an issue for it and self-assign.

@stefonarch
Copy link
Member

stefonarch commented Feb 4, 2019

I remember there was a wrapper years ago in KDE, but didn' work perfectly
EDIT: It still exists...
https://superuser.com/a/1373504

@tsujan
Copy link
Member

tsujan commented Feb 4, 2019

EDIT: It still exists...

No, it doesn't.

@stefonarch
Copy link
Member

@tsujan
Copy link
Member

tsujan commented Feb 5, 2019

Too old and even when it was usable, its focus was on KDE file dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Issues
  
Translations and L10N
Development

No branches or pull requests

4 participants