xdg portal crap which doesn't even work

This commit is contained in:
krizej 2024-07-12 15:42:35 +02:00
parent ba32da43cc
commit cb8832c79a
3 changed files with 10 additions and 11 deletions

View file

@ -47,11 +47,6 @@
home.sessionVariables = { home.sessionVariables = {
GTK_USE_PORTAL = "1"; GTK_USE_PORTAL = "1";
}; };
home.packages = with pkgs; [
xdg-desktop-portal
xdg-desktop-portal-gtk
];
}; };
} }

View file

@ -5,8 +5,7 @@ in {
home-manager.users.krizej = { home-manager.users.krizej = {
home.packages = with pkgs; [ home.packages = with pkgs; [
xdg-user-dirs xdg-user-dirs
xdg-desktop-portal xdg-utils
xdg-desktop-portal-gnome
]; ];
home.sessionVariables = rec { home.sessionVariables = rec {
@ -43,10 +42,15 @@ in {
videos = "${HOME}/videos"; videos = "${HOME}/videos";
}; };
# fix this scheisse
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-kde ];
config.common.default = [ "*" ];
};
home.file = { home.file = {
".config/python/pythonrc".text = '' ".config/python/pythonrc".text = ''
def is_vanilla() -> bool: def is_vanilla() -> bool:
import sys import sys
return not hasattr(__builtins__, '__IPYTHON__') and 'bpython' not in sys.argv[0] return not hasattr(__builtins__, '__IPYTHON__') and 'bpython' not in sys.argv[0]