Add custom Chromium Snap launcher

This commit is contained in:
Anthony Rose 2021-03-18 10:07:12 +00:00
parent ef43f66137
commit cbda194fa9
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,27 @@
[Desktop Entry]
X-SnapInstanceName=chromium
Version=1.0
Name=Chromium Web Browser
GenericName=Web Browser
Comment=Access the Internet
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" %U
Terminal=false
Type=Application
Icon=/snap/chromium/current/chromium.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
StartupWMClass=chromium
Actions=NewWindow;Incognito;TempProfile;
[Desktop Action NewWindow]
Name=Open a New Window
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768"
[Desktop Action Incognito]
Name=Open a New Window in incognito mode
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" --incognito
[Desktop Action TempProfile]
Name=Open a New Window with a temporary profile
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" --temp-profile

View file

@ -59,6 +59,10 @@
dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium-browser.desktop" dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium-browser.desktop"
vars: vars:
prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/pkg' if ansible_system == 'NetBSD' else '/usr/local' }}" prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/pkg' if ansible_system == 'NetBSD' else '/usr/local' }}"
- name: Add custom Chromium Snap launcher
ansible.builtin.copy:
src: "chromium_chromium.desktop"
dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium_chromium.desktop"
- name: Add GVim COC launcher - name: Add GVim COC launcher
ansible.builtin.copy: ansible.builtin.copy:
src: gvim-coc.desktop src: gvim-coc.desktop