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

Feature Request: Use KDE/Qt/Kdialog for uploading files #28

Open
rdrms opened this issue Nov 24, 2021 · 2 comments
Open

Feature Request: Use KDE/Qt/Kdialog for uploading files #28

rdrms opened this issue Nov 24, 2021 · 2 comments

Comments

@rdrms
Copy link

rdrms commented Nov 24, 2021

When using the included browser (or any other browser/program) the system appears to utilize the GTK+ File Picker.

While this is usable, it lacks many features (such as thumbnail view) and I feel we would be better served by swapping over to the KDE/Qt/kdialog file picker which is much, much better.

This might be an issue with cutefish-session rather than filemanager, I'm not exactly sure where to place this.

Thanks for the great desktop, cheers!

@rdrms
Copy link
Author

rdrms commented Nov 26, 2021

Workaround:

First, install xdg-desktop-portal-kde, and I think you also need kdialog, as these two combine to form the file picker for non-Qt apps.

sudo apt install kdialog xdg-portal-kde

Then, following the instructions on this site: https://superuser.com/questions/1393755/how-to-use-the-qt-file-picker-for-both-gtk-and-qt-apps

Namely, the important steps:

dbus-update-activation-environment --systemd XDG_CURRENT_DESKTOP="KDE"
systemctl --user stop xdg-desktop-portal{,-gtk}
pkill -f xdg-desktop-portal

Finally, edit your applications that you wish to use the Qt/KDE filepicker with as follows.

cd /usr/share/applications
sudo vim brave-browser.desktop #example using vim to edit brave's .desktop file

Find all lines that begin with "exec=" and prepend GTK_USE_PORTAL="1" to them,
so:
This line:
Exec=/usr/bin/brave-browser-stable %U
Becomes:
Exec=GTK_USE_PORTAL="1" /usr/bin/brave-browser-stable %U
Note that some applications (especially browsers) have multiple lines for new windows and incognito ones, be sure to edit each line (there were 3 for Brave).

Then, relaunch Brave, et voila:

nothumbnails

You'll notice I don't have thubmnails, I'll probably have to grab the KDE component which does that, but that will be another post.

@rdrms
Copy link
Author

rdrms commented Nov 26, 2021

I installed a few things and I'm not sure which was the kicker, but the deciding factor was going through the dependencies of Dolphin (the KDE filepicker), because the thumbnails worked when it was installed but stopped working when it and dependencies were removed. I went through the dependencies and it seems you don't need dolphin, but "kio-extras" is important, as well as probably "kdegraphics-thumbnailers", further testing would be good to see if simply installing these two packages would be enough to enable thumbnails, but they're working now!

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

No branches or pull requests

1 participant