Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8e1e4c9fb9b96233e250557d368d158e to your computer and use it in GitHub Desktop.
Save anonymous/8e1e4c9fb9b96233e250557d368d158e to your computer and use it in GitHub Desktop.
My salt state for mimeapps
Program associations:
ini.options_present:
- name: "/home/{{ myUser }}/.local/share/applications/mimeapps.list"
- separator: '='
- sections:
'Default Applications':
'application/pdf': 'qpdfview.desktop'
'application/postscript': 'qpdfview.desktop'
'application/x-navi-animation': 'xfimage.desktop'
'application/x-pdf': 'qpdfview.desktop'
'image/bmp': 'xfimage.desktop'
'image/gif': 'xfimage.desktop'
'image/jpeg': 'xfimage.desktop'
'image/pdf': 'qpdfview.desktop'
'image/png': 'xfimage.desktop'
'image/svg': 'xfimage.desktop'
'image/svg+xml': 'xfimage.desktop'
'image/tiff': 'xfimage.desktop'
'image/vnd.djvu': 'qpdfview.desktop'
'image/vnd.wap.wbmp': 'xfimage.desktop'
'image/x-bmp': 'xfimage.desktop'
'image/x-cmu-raster': 'xfimage.desktop'
'image/x-djvu': 'qpdfview.desktop'
'image/x-ico': 'xfimage.desktop'
'image/x-icon': 'xfimage.desktop'
'image/x-MS-bmp': 'xfimage.desktop'
'image/x-pcx': 'xfimage.desktop'
'image/x-pdf': 'qpdfview.desktop'
'image/xpm': 'xfimage.desktop'
'image/x-png': 'xfimage.desktop'
'image/x-portable-anymap': 'xfimage.desktop'
'image/x-portable-bitmap': 'xfimage.desktop'
'image/x-portable-graymap': 'xfimage.desktop'
'image/x-portable-pixmap': 'xfimage.desktop'
'image/x-sun-raster': 'xfimage.desktop'
'image/x-tga': 'xfimage.desktop'
'image/x-xbitmap': 'xfimage.desktop'
'image/x-xpixmap': 'xfimage.desktop'
'inode/directory': 'xfe.desktop'
'text/html': 'x-www-browser.desktop'
'text/pdf': 'qpdfview.desktop'
'text/x-pdf': 'qpdfview.desktop'
'x-scheme-handler/https': 'x-www-browser.desktop'
'x-scheme-handler/http': 'x-www-browser.desktop'
file.replace:
- name: "/home/{{ myUser }}/.local/share/applications/mimeapps.list"
- pattern: " = "
- repl: "="
- show_changes: False
- watch:
- ini: "Program associations"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment