aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/.bashrc2
-rw-r--r--misc/.config/mimeapps.list4
-rw-r--r--misc/.local/share/applications/emacsclient-web.desktop20
3 files changed, 23 insertions, 3 deletions
diff --git a/misc/.bashrc b/misc/.bashrc
index b425d61..814098d 100644
--- a/misc/.bashrc
+++ b/misc/.bashrc
@@ -280,7 +280,7 @@ gs-extract() {
# ghostscript, merge files: gs-merge merged.pdf 1.pdf 2.pdf
gs-merge() {
- gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$*
+ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@"
}
# dptrp1
diff --git a/misc/.config/mimeapps.list b/misc/.config/mimeapps.list
index e0b551f..413a9f5 100644
--- a/misc/.config/mimeapps.list
+++ b/misc/.config/mimeapps.list
@@ -36,8 +36,8 @@ video/quicktime=vlc.desktop
video/x-msvideo=mpv.desktop
x-scheme-handler/chrome=firefox.desktop
x-scheme-handler/ftp=filezilla.desktop
-x-scheme-handler/http=firefox.desktop
-x-scheme-handler/https=firefox.desktop
+x-scheme-handler/http=emacsclient-web.desktop
+x-scheme-handler/https=emacsclient-web.desktop
x-scheme-handler/mailto=emacsclient-mail.desktop
x-scheme-handler/sgnl=signal-desktop.desktop
x-scheme-handler/org-protocol=emacsclient-org-protocol.desktop
diff --git a/misc/.local/share/applications/emacsclient-web.desktop b/misc/.local/share/applications/emacsclient-web.desktop
new file mode 100644
index 0000000..5beb0f3
--- /dev/null
+++ b/misc/.local/share/applications/emacsclient-web.desktop
@@ -0,0 +1,20 @@
+[Desktop Entry]
+Categories=Network;Web;
+Comment=GNU Emacs is an extensible, customizable text editor - and more
+Exec=/usr/bin/emacsclient -n %u
+Icon=emacs
+Name=Emacs (Web Browser, Client)
+MimeType=x-scheme-handler/http;x-scheme-handler/https;
+NoDisplay=true
+Terminal=false
+Type=Application
+Keywords=emacsclient;
+Actions=new-window;new-instance;
+
+[Desktop Action new-window]
+Name=New Window
+Exec=/usr/bin/emacsclient --create-frame -n %u
+
+[Desktop Action new-instance]
+Name=New Instance
+Exec=emacs -f browse-url %u