From 5cb62073a91f2bca96177f6f3ff7f44291ab32fa Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Mon, 28 Oct 2024 08:30:43 +0000 Subject: [PATCH] Add separate launcher for KDE --- .../files/{pwsh.desktop => pwsh-gnome.desktop} | 3 ++- roles/home-gui/files/pwsh-kde.desktop | 8 ++++++++ roles/home-gui/tasks/dotfiles.yml | 10 +++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) rename roles/home-gui/files/{pwsh.desktop => pwsh-gnome.desktop} (70%) create mode 100644 roles/home-gui/files/pwsh-kde.desktop diff --git a/roles/home-gui/files/pwsh.desktop b/roles/home-gui/files/pwsh-gnome.desktop similarity index 70% rename from roles/home-gui/files/pwsh.desktop rename to roles/home-gui/files/pwsh-gnome.desktop index d9c2838..0aa65dc 100644 --- a/roles/home-gui/files/pwsh.desktop +++ b/roles/home-gui/files/pwsh-gnome.desktop @@ -1,7 +1,8 @@ [Desktop Entry] -Name=Microsoft PowerShell +Name=Microsoft PowerShell (GNOME Terminal) TryExec=/home/acp/.dotnet/tools/pwsh Exec=gnome-terminal --profile=PowerShell Type=Application Icon=pwsh StartupNotify=true +OnlyShowIn=GNOME diff --git a/roles/home-gui/files/pwsh-kde.desktop b/roles/home-gui/files/pwsh-kde.desktop new file mode 100644 index 0000000..82807cd --- /dev/null +++ b/roles/home-gui/files/pwsh-kde.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Microsoft PowerShell (Konsole) +TryExec=/home/acp/.dotnet/tools/pwsh +Exec=konsole --profile=PowerShell +Type=Application +Icon=pwsh +StartupNotify=true +OnlyShowIn=KDE diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 06deb04..a99dd38 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -75,10 +75,14 @@ ansible.builtin.copy: src: "face.svg" dest: "{{ ansible_env.HOME }}/.face" -- name: Create $XDG_DATA_HOME/pwsh.desktop +- name: Create $XDG_DATA_HOME/pwsh-gnome.desktop ansible.builtin.copy: - src: "pwsh.desktop" - dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/pwsh.desktop" + src: "pwsh-gnome.desktop" + dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/pwsh-gnome.desktop" +- name: Create $XDG_DATA_HOME/pwsh-kde.desktop + ansible.builtin.copy: + src: "pwsh-kde.desktop" + dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/pwsh-kde.desktop" - name: Create $XDG_DATA_HOME/icons/pwsh.svg ansible.builtin.copy: src: "pwsh.svg"