diff --git a/roles/home-gui/files/com.microsoft.Edge.desktop b/roles/home-gui/files/com.microsoft.Edge.desktop new file mode 100644 index 0000000..dedd4f3 --- /dev/null +++ b/roles/home-gui/files/com.microsoft.Edge.desktop @@ -0,0 +1,23 @@ +[Desktop Entry] +Version=1.0 +Name=Microsoft Edge +GenericName=Web Browser +Comment=Access the Internet +TryExec=.local/share/flatpak/app/com.microsoft.Edge/current/active/export/bin/com.microsoft.Edge +Exec=/usr/bin/flatpak run com.microsoft.Edge -enable-features=UseOzonePlatform -ozone-platform=wayland --high-dpi-support=1 --gtk-version=4 %U +StartupNotify=true +Terminal=false +Icon=com.microsoft.Edge +StartupWMClass=microsoft-edge +Type=Application +Categories=Network;WebBrowser; +MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https; +Actions=new-window;new-private-window; + +[Desktop Action new-window] +Name=New Window +Exec=/usr/bin/flatpak run com.microsoft.Edge + +[Desktop Action new-private-window] +Name=New InPrivate Window +Exec=/usr/bin/flatpak run com.microsoft.Edge -enable-features=UseOzonePlatform -ozone-platform=wayland --high-dpi-support=1 --gtk-version=4 --inprivate %U diff --git a/roles/home-gui/tasks/dotfiles.yaml b/roles/home-gui/tasks/dotfiles.yaml index bde140f..88c4fb3 100644 --- a/roles/home-gui/tasks/dotfiles.yaml +++ b/roles/home-gui/tasks/dotfiles.yaml @@ -95,3 +95,7 @@ ansible.builtin.copy: src: "konsole/" dest: "{{ ansible_env.XDG_DATA_HOME }}/konsole" +- name: Create $XDG_DATA_HOME/com.microsoft.Edge.desktop + ansible.builtin.copy: + src: "com.microsoft.Edge.desktop" + dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/com.microsoft.Edge.desktop"