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"