It doesn’t work for qt app like telegram
There isn’t xdg.configFile option for the nixos system.
Yes
The screencasting ?
It works. I forgot to mention it.
It’s a home-manager option
For QT apps, you need
environment.sessionVariables = {
QT_QPA_PLATFORMTHEME = "xdgdesktopportal";
};
as per bitfix13 answer. For Telegram specifically, maybe
environment.sessionVariables = {
QT_QPA_PLATFORMTHEME = "xdgdesktopportal";
TDESKTOP_USE_GTK_FILE_DIALOG = 1;
};
If you use Stylix, setting this in home-manager did the trick for me:
stylix.targets.qt.standardDialogs = "xdgdesktopportal";
maybe a bit late to reply but if u wanna see how it did it, here it is: in my nixos modules and in my hm module
I’m also using xdp-termfilepicker rn since it’s better integrated with NixOS, but if u really wanna use termfilechooser, just comment out ./termfilepickers and uncomment `"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ]`
Personally i did the portal config in my nixos module and place the termfilechooser config with hm, but im almost sure u can do it all in hm, but in the off chanceit doesn’t work try to do it in the nixos module
Also don’t forget to correctly set GDK_DEBUG to "portals" and GTK_USE_PORTAL to 1, which i set in hm with home.sessionVariables
since when is there a niri portal ??
It works everywhere.
Wouldn’t it be better to include session variables in wayland compositor instead of doing it globally?
personally i use home.sessionVariables instead, idk if it’s better but it works too
btw is there any way to force gtk apps like lutris tu use it too ?