mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 19:58:35 +02:00
systemd: don't use a script to update defaults
Just update ~/.config/mimeapps.list manually (and sync it).
This commit is contained in:
parent
3ffca01c5a
commit
0d7c70a2ec
2 changed files with 0 additions and 26 deletions
|
@ -1,25 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Set default MIME type for XDG. Linux desktop is a bit painful around
|
|
||||||
# that. Random applications register for any MIME type and the default
|
|
||||||
# is always surprising.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
while read desktop mimetypes; do
|
|
||||||
for dir in ~/.local/share/applications /usr/local/share/applications /usr/share/applications notfound; do
|
|
||||||
[ -f "$dir"/"$desktop" ] || continue
|
|
||||||
echo "Set default for $mimetypes to $desktop"
|
|
||||||
xdg-mime default $desktop $mimetypes
|
|
||||||
break
|
|
||||||
done
|
|
||||||
[ "$dir" != "notfound" ] || echo "Application $desktop not found"
|
|
||||||
done <<EOF
|
|
||||||
firefox.desktop x-scheme-handler/http x-scheme-handler/https x-scheme-handler/about
|
|
||||||
firefox.desktop text/html
|
|
||||||
emacsmail.desktop x-scheme-handler/mailto
|
|
||||||
org.pwmt.zathura-ps.desktop application/postscript
|
|
||||||
org.pwmt.zathura-pdf-poppler.desktop application/pdf
|
|
||||||
org.pwmt.zathura-djvu.desktop image/vnd.djvu image/vnd.djvu+multipage
|
|
||||||
org.kde.krita.desktop image/png image/jpeg image/jpg image/gif image/webp
|
|
||||||
EOF
|
|
|
@ -5,6 +5,5 @@ PartOf=graphical-session@%i.target
|
||||||
[Service]
|
[Service]
|
||||||
Environment=DISPLAY=%I
|
Environment=DISPLAY=%I
|
||||||
ExecStart=/usr/bin/xset -b
|
ExecStart=/usr/bin/xset -b
|
||||||
ExecStart=%h/.config/awesome/bin/xdg-defaults
|
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=false
|
RemainAfterExit=false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue