From ac58e45d8855cb455554ae38e532c97699ca5ee1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 5 Oct 2026 00:30:06 +0200 Subject: modules/ly: Load zsh desktop file as separate file without Terminal=true --- modules/by-name/ly/ly/module.nix | 12 +----------- modules/by-name/ly/ly/zsh.desktop | 11 +++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 modules/by-name/ly/ly/zsh.desktop (limited to 'modules') diff --git a/modules/by-name/ly/ly/module.nix b/modules/by-name/ly/ly/module.nix index e2d3b0ae..7ea4511a 100644 --- a/modules/by-name/ly/ly/module.nix +++ b/modules/by-name/ly/ly/module.nix @@ -22,21 +22,11 @@ null config.home-manager.users.soispha.home.packages; - shellDesktop = pkgs.writeText "zsh.desktop" '' - [Desktop Entry] - Comment=A simple shell session - DesktopNames=null - Exec=zsh - Name=zsh shell - Terminal=true - ''; + shellDesktop = ./zsh.desktop; # TODO: This could use the `services.display-manager.sessionPackages` option <2026-06-23> customSessionsDir = pkgs.runCommand "custom-sessions" {} - /* - bash - */ '' mkdir "$out"; cp "${riverDesktop}/share/applications/river.desktop" "$out" diff --git a/modules/by-name/ly/ly/zsh.desktop b/modules/by-name/ly/ly/zsh.desktop new file mode 100644 index 00000000..645d6fa0 --- /dev/null +++ b/modules/by-name/ly/ly/zsh.desktop @@ -0,0 +1,11 @@ +# See https://wiki.archlinux.org/title/Desktop_entries +# https://freedesktop.org/wiki/Howto_desktop_files/ +[Desktop Entry] +Type=Application +Version=1.0 +Comment=A simple shell session +Exec=zsh +Name=zsh shell +# Terminal _should_ be true, but for ly it works maybe better without (because there is no +# terminal to start) +Terminal=false -- cgit v1.3.1