feat: use home-manager to manage desktop files

This commit is contained in:
matt1432 2023-06-24 09:09:29 +02:00
parent 4e7c9a4601
commit 5652480f01

View file

@ -133,7 +133,7 @@ in
while killall -r -0 ksshaskpass > /dev/null 2>&1 while killall -r -0 ksshaskpass > /dev/null 2>&1
do do
sleep 0.1 sleep 0.1
if [[ $(hyprctl activewindow | grep Ksshaskpas) == "" ]]; then if [[ $(hyprctl activewindow | grep Ksshaskpass) == "" ]]; then
killall -r ksshaskpass killall -r ksshaskpass
fi fi
done done
@ -143,6 +143,22 @@ in
'') '')
]; ];
xdg.desktopEntries.gparted = {
name = "GParted";
genericName = "Partition Editor";
comment = "Create, reorganize, and delete partitions";
exec = "Gparted";
icon = "gparted";
terminal = false;
type = "Application";
categories = [ "GNOME" "System" "Filesystem" ];
startupNotify = true;
settings = {
Keywords = "Partition";
X-GNOME-FullName = "GParted Partition Editor";
};
};
home.sessionVariables = { home.sessionVariables = {
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:\$XDG_DATA_DIRS"; XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:\$XDG_DATA_DIRS";
SUDO_ASKPASS = "${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname}"; SUDO_ASKPASS = "${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname}";