Progressive Web Apps for Firefox 的评价
Progressive Web Apps for Firefox 作者: Filip Štamcar
Squeaky Pancakes 的评价
评分 4 / 5
来自 Squeaky Pancakes,3 年前Works really well, better than electron apps most of the time.
My one problem is it for some reason ignores XDG Portals on Linux meaning that KDE users are stuck with the terrible GTK file picker.
My one problem is it for some reason ignores XDG Portals on Linux meaning that KDE users are stuck with the terrible GTK file picker.
开发者回应
发布于 3 年前You can enable XDG portals by setting `widget.use-xdg-desktop-portal` to `true` in `about:config` inside PWA profile (you can open `about:config` by pressing F6 and then typing it into the popup).
It seems Firefox by default never uses XDG portals, but distros with KDE instead set some environment variable (`GTK_USE_PORTAL=1`) that makes Firefox use portals. However, because FirefoxPWA launches the default Mozilla-provided Firefox without setting any additional environment variables, Firefox won't use portals unless you manually enable them in `about:config`.
It seems Firefox by default never uses XDG portals, but distros with KDE instead set some environment variable (`GTK_USE_PORTAL=1`) that makes Firefox use portals. However, because FirefoxPWA launches the default Mozilla-provided Firefox without setting any additional environment variables, Firefox won't use portals unless you manually enable them in `about:config`.