|
Added
Link Here
|
| 0 |
- |
1 |
Make it possible to run firefox with KDE filedialogs. |
|
|
2 |
|
| 3 |
The call for parse_app_info_from_flatpak_info uses the /proc/$PID/root |
| 4 |
file to access the flatpak information file. |
| 5 |
|
| 6 |
We neither have support for /proc/$PID/root nor flatpaks or snaps. |
| 7 |
|
| 8 |
With this fix and deskutils/plasma5-xdg-desktop-portal-kde it is now possible |
| 9 |
to run firefox using the KDE file dialogs. |
| 10 |
|
| 11 |
> GTK_USE_PORTAL=1 firefox |
| 12 |
|
| 13 |
--- src/xdp-utils.c.patched 2021-07-22 16:25:27.756116000 +0200 |
| 14 |
+++ src/xdp-utils.c 2021-07-22 16:30:51.814245000 +0200 |
| 15 |
@@ -630,6 +630,11 @@ |
| 16 |
g_autoptr(XdpAppInfo) app_info = NULL; |
| 17 |
g_autoptr(GError) local_error = NULL; |
| 18 |
|
| 19 |
+// On FreeBSD the main use of the xdg-portal is to be able to use |
| 20 |
+// "native" file dialogs, say the KDE file dialogs in firefox. |
| 21 |
+// There is no support for the application package mechanisms like |
| 22 |
+// flatpak and snap yet. |
| 23 |
+#ifndef __FreeBSD__ |
| 24 |
app_info = parse_app_info_from_flatpak_info (pid, &local_error); |
| 25 |
if (app_info == NULL && local_error) |
| 26 |
{ |
| 27 |
@@ -646,6 +651,7 @@ |
| 28 |
return NULL; |
| 29 |
} |
| 30 |
} |
| 31 |
+#endif |
| 32 |
|
| 33 |
if (app_info == NULL) |
| 34 |
app_info = xdp_app_info_new_host (); |