this post was submitted on 24 Jun 2023
2 points (75.0% liked)

Linux

48112 readers
679 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

So I've recently made the move and switched from DEs like GNOME or KDE to hyprland. It seems to work great, but every time I initially launch it, I see the error / warning: you have one or more incomparable xdg-desktop-portal-impls installed please remove incomparable ones to avoid issues. I've looked online a bunch, but I've only found posts offering solutions specifically for arch linux, and I am on Fedora. I understand that I have some duplicate implementations of portals (?), but I don't feel comfortable to just yoink random packages. Obviously, I would be happy if I get the solution for fedora, but optimally I would like a solution, that would let me figure out the redundant / incompatible package myself next time, not matter the distribution.

I hope it's okay to ask questions like this here :)

Here is the output of sudo dnf list | grep portal if that helps:

libportal.x86_64                                                                         0.6-6.fc38                                                       @fedora                                         
libportal-gtk3.x86_64                                                                    0.6-6.fc38                                                       @fedora                                         
libportal-gtk4.x86_64                                                                    0.6-6.fc38                                                       @fedora                                         
xdg-desktop-portal.x86_64                                                                1.16.0-3.fc38                                                    @fedora                                         
xdg-desktop-portal-gnome.x86_64                                                          44.1-1.fc38                                                      @updates                                        
xdg-desktop-portal-gtk.x86_64                                                            1.14.1-2.fc38                                                    @fedora                                         
xdg-desktop-portal-wlr.x86_64                                                            0.7.0-1.fc38                                                     @updates                                        
kodi-pvr-mediaportal-tvserver.x86_64                                                     1:20.3.0-1.fc38                                                  rpmfusion-free                                  
libportal.i686                                                                           0.6-6.fc38                                                       fedora                                          
libportal-devel.i686                                                                     0.6-6.fc38                                                       fedora                                          
libportal-devel.x86_64                                                                   0.6-6.fc38                                                       fedora                                          
libportal-devel-doc.noarch                                                               0.6-6.fc38                                                       fedora                                          
libportal-gtk3.i686                                                                      0.6-6.fc38                                                       fedora                                          
libportal-gtk3-devel.i686                                                                0.6-6.fc38                                                       fedora                                          
libportal-gtk3-devel.x86_64                                                              0.6-6.fc38                                                       fedora                                          
libportal-gtk4.i686                                                                      0.6-6.fc38                                                       fedora                                          
libportal-gtk4-devel.i686                                                                0.6-6.fc38                                                       fedora                                          
libportal-gtk4-devel.x86_64                                                              0.6-6.fc38                                                       fedora                                          
libportal-qt5.i686                                                                       0.6-6.fc38                                                       fedora                                          
libportal-qt5.x86_64                                                                     0.6-6.fc38                                                       fedora                                          
libportal-qt5-devel.i686                                                                 0.6-6.fc38                                                       fedora                                          
libportal-qt5-devel.x86_64                                                               0.6-6.fc38                                                       fedora                                          
python3-portalocker.noarch                                                               2.7.0-1.fc38                                                     fedora                                          
tmt-report-reportportal.noarch                                                           1.24.1-1.fc38                                                    updates                                         
xdg-desktop-portal.i686                                                                  1.16.0-3.fc38                                                    fedora                                          
xdg-desktop-portal-devel.i686                                                            1.16.0-3.fc38                                                    fedora                                          
xdg-desktop-portal-devel.x86_64                                                          1.16.0-3.fc38                                                    fedora                                          
xdg-desktop-portal-kde.x86_64                                                            5.27.5-1.fc38                                                    updates                                         
xdg-desktop-portal-lxqt.x86_64                                                           0.3.0-2.fc38                                                     fedora                                          
top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Your problem is the coexistence of these three portals:

xdg-desktop-portal-{wlr,gnome,gtk}

You can remove the unused one to get rid of the warning (e.g. keep wlr and potenially also gtk for hyprland). Their main functionality is opening file and screensharing dialogues. Could be that you have to install the gnome one again if you switch to that DE. Read more here:

https://wiki.archlinux.org/title/XDG_Desktop_Portal

Hope it helps!

[–] [email protected] 1 points 1 year ago (1 children)

You seem to have three desktop portals installed. Gnome, KDE and lxqt. Only use one.

[–] [email protected] 0 points 1 year ago (1 children)

I've replied this to a different comment as well, but wouldn't this mean I couldn't switch back? Because currently I can just select my DE in a dropdown on the login screen.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

No you can always recover, uninstall it and reinstall later if you need it.

Looks like you could just mv /usr/share/xdg-desktop-portal/portals/gnome.portal /home/<your-profile> and remove the associated env variable. This way you don't mess with your packages. I'd start with the wiki linked in this thread.

[–] [email protected] 0 points 1 year ago (1 children)

Okay, I uninstalled the gnome portal, which meant I had to uninstall gnome-shell, which lead to GMD crashing (that I was apparently using lol), which was scary at first, but I was able to start Hyperland from a TTY without issue, and don't receive an error anymore, thanks!

[–] [email protected] 1 points 1 year ago

Awesome! Glad it worked out

load more comments
view more: next ›