Bug 2249224 - Links do not open in flatpak apps on XFCE Spin
Summary: Links do not open in flatpak apps on XFCE Spin
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-11 13:59 UTC by Nick Krichevsky
Modified: 2024-11-27 21:42 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-27 21:42:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nick Krichevsky 2023-11-11 13:59:07 UTC
I installed F39 XFCE on a new machine and noticed that links do not work. After a significant amount of digging (and some help from the forum https://discussion.fedoraproject.org/t/cant-open-links-from-flatpak-applications/95614), we determined that the issue is that the XFCE spin does not have a configuration for `xdg-desktop-portal`. 

It looks like this issue has been fixed upstream with two fixes, both of which are likely required to be brought downstream.

1. Adding a portals.conf for XFCE https://gitlab.xfce.org/xfce/xfce4-session/-/blob/xfce-4.18/xfce4-session/xfce-portals.conf?ref_type=heads
2. Ensuring that XDG_* variables are populated upon login https://gitlab.xfce.org/xfce/xfce4-session/-/commit/0fe26b4d0eab7207c5349af340eb9e8cb833e29c

It seems this originates from the fact that x-d-p removed fallbacks for link handling, and now desktop environments are required to provide configurations for it. Unfortunately, even if you do add a `xfce-portals.conf`, right now the XDG_CURRENT_DESKTOP variable is not populated automatically, hence the need for the second fix

```
$ systemctl --user show-environment
HOME=/home/nick
LANG=en_US.UTF-8
LOGNAME=nick
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
SHELL=/usr/bin/zsh
USER=nick
XDG_DATA_DIRS=/home/nick/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/u>
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DISPLAY=:0
XAUTHLOCALHOSTNAME=
XAUTHORITY=/run/lightdm/nick/xauthority
```

Reproducible: Always

Steps to Reproduce:
1. Open a flatpak app that has clickable links, such as Signal
2. Click the link
3. Observe nothing happens
Actual Results:  
The link does not open in my browser

Expected Results:  
The link should open in my browser

Comment 1 Chris Williams 2023-12-12 21:31:40 UTC
This has been resolved by restoring the fallback to xdg-desktop-portal-gtk: https://bodhi.fedoraproject.org/updates/FEDORA-2023-eec70fd3ad

Those two commits would still be nice to have, but I think it can wait for an upstream release now. The only practical change would be using xdg-desktop-portal-xapp for the Wallpaper and Screenshot portals, and that's not installed by default anyway.

Comment 2 Aoife Moloney 2024-11-13 10:02:19 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2024-11-27 21:42:15 UTC
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26.

Fedora Linux 39 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.