summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-06-13 23:38:41 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-06-13 23:38:41 +0200
commit222330f47220aadfd447fd6f7a3a66f3384dfc6c (patch)
treef9b420f969727df44999aa3e82cd1e55473211bf /.local
parentd32b5b7b038e32c7e481916b4df6ccd7fbfe9c87 (diff)
downloaddotfiles-222330f47220aadfd447fd6f7a3a66f3384dfc6c.tar.gz
dotfiles-222330f47220aadfd447fd6f7a3a66f3384dfc6c.tar.xz
dotfiles-222330f47220aadfd447fd6f7a3a66f3384dfc6c.zip
Mime associations: workaround Fedora stupidity FESCO #1077
See: https://fedorahosted.org/fesco/ticket/1077 Original problem I wanted to solve is that Wine's notepad is being default editor for text/plain (!). Unfortunately, one cannot refer to gvim.desktop to fix this (in fact fedora-gvim.desktop, see the ticket), so more work was needed. My (well, it's just a copy) gvim.desktop can be eventually dropped after upgrade to F19 (?). Additionally, add mutt.desktop + association (WIP). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.local')
-rw-r--r--.local/share/applications/defaults.list3
-rw-r--r--.local/share/applications/gvim.desktop65
-rw-r--r--.local/share/applications/mutt.desktop14
3 files changed, 82 insertions, 0 deletions
diff --git a/.local/share/applications/defaults.list b/.local/share/applications/defaults.list
new file mode 100644
index 0000000..1282e6d
--- /dev/null
+++ b/.local/share/applications/defaults.list
@@ -0,0 +1,3 @@
+[Default Applications]
+text/plain=gvim.desktop;
+x-scheme-handler/mailto=mutt.desktop;
diff --git a/.local/share/applications/gvim.desktop b/.local/share/applications/gvim.desktop
new file mode 100644
index 0000000..ba98445
--- /dev/null
+++ b/.local/share/applications/gvim.desktop
@@ -0,0 +1,65 @@
+[Desktop Entry]
+Name=Vi IMproved
+Name[bg]=Vi Ðåäàêòîð
+Name[ca]=Vi Millorat
+Name[da]=Vi forbedret
+Name[eo]=VIM
+Name[et]=Täiustatud Vi (vim)
+Name[fr]=Vi étendu (VIM)
+Name[he]=רפושמ Vi
+Name[hu]=Vi
+Name[is]=Vi IMproved ritillinn
+Name[it]=Vi iMproved
+Name[no]=Vi IMproved (forbedret VI)
+Name[pl]=Poprawiony VI (vim)
+Name[ro]=VIM
+Name[ru]=Улучшенный VI
+Name[sk]=Vi IMpreved
+Name[sl]=Izboljšani vi (vim)
+Name[sv]=Förbättrad Vi
+Name[zh_CN.GB2312]=改进的 Vi
+Comment=Powerful text editor with scripting functions and macro recorder
+Comment[bg]=Ðåäàêòîð ñ ìíîãî âúçìîæíîñòè
+Comment[ca]=Editor vi potent
+Comment[cs]=Mocný textový editor vi
+Comment[da]=En kraftig vi tekstbehandler
+Comment[de]=Ein leistungsfähiger vi-Editor
+Comment[el]=Πανίσχυρος διορθωτής vi
+Comment[eo]=VIM similas al redaktilo "vi", sed havas aldonajn ecojn
+Comment[es]=Una versión mejorada del editor vi
+Comment[et]=Võimas tekstiredaktor vi
+Comment[fi]=Tehokas vi-tekstieditori
+Comment[fr]=Éditeur vi puissant
+Comment[gl]=Potente editor vi
+Comment[he]=Vi המצועה בר ךרועה
+Comment[hr]=Napredni vi uređivač
+Comment[hu]=Vi szövegszerkesztő
+Comment[is]=Öflug útgáfa vi ritilsins
+Comment[it]=Un editor vi potenziato
+Comment[ja]=強力なViエディタ
+Comment[lt]=Galingas vi redaktorius
+Comment[mk]=Моќен VI уредувач
+Comment[nl]=Krachtige vi-editor
+Comment[no]=En kraftig vi-redigerer
+Comment[no_NY]=Kraftig vi-tekstredigeringsprogram
+Comment[pl]=Edytor vi
+Comment[pt]=Um poderoso editor de texto
+Comment[ro]=Un editor de texte VI, puternic
+Comment[ru]=Мощный текстовый редактор vi
+Comment[sk]=Silný textový procesor vi
+Comment[sl]=Zmogljivi urejevalnik vi
+Comment[sr]=Moćni vi editor
+Comment[sv]=En kraftfull texteditor
+Comment[ta]=ºì¾¢Å¡öó¾ vi ¦¾¡ÌôÀ¡Ç÷
+Comment[tr]=Güçlü vi düzenleyicisi
+Comment[uk]=Потужний редактор vi
+Comment[zh_CN.GB2312]=功能强大的 vi 编辑器
+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
+Exec=gvim -f %F
+Icon=gvim
+Type=Application
+Terminal=false
+X-XClassHintResName=VIM
+MapNotify=false
+Categories=Utility;TextEditor;
+X-Desktop-File-Install-Version=0.21
diff --git a/.local/share/applications/mutt.desktop b/.local/share/applications/mutt.desktop
new file mode 100644
index 0000000..4964020
--- /dev/null
+++ b/.local/share/applications/mutt.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+# combination of
+# https://gitorious.org/chrisirwin-utils/maildir-indicator/blobs/787448a9f66e466f7e6ac0c2bf97430042af8437/mutt.desktop
+# and
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=mutt-1.5.21.diff;att=1;bug=678596
+Exec=/usr/local/bin/mutt
+Name=Mutt
+Name[de]=Mutt
+MimeType=x-scheme-handler/mailto;
+Terminal=true
+Type=Application
+Categories=ConsoleOnly;Network;Email
+Icon=gnome-terminal
+GenericName=Mail Client