mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
pantheon.elementary-session-settings: use custom mimeapps.list
We need this to be customized because in the latest GNOME the desktop file name for evince changed from `evince.desktop` to `org.gnome.Evince.desktop`. Additonally we don't have pantheon-mail so we have to switch that out for geary. Also note that we're using the desktop specific type of mimeapps.list[0]. This makes the defaults only apply for the pantheon desktop. [0]: https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s02.html
This commit is contained in:
parent
ba7eb15363
commit
ee50688119
2 changed files with 170 additions and 2 deletions
|
@ -66,8 +66,8 @@ stdenv.mkDerivation rec {
|
|||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
cp -avr applications $out/share/
|
||||
mkdir -p $out/share/applications
|
||||
cp -av ${./pantheon-mimeapps.list} $out/share/applications/pantheon-mimeapps.list
|
||||
|
||||
mkdir -p $out/etc/xdg/autostart
|
||||
cp -av ${gnome-keyring}/etc/xdg/autostart/* $out/etc/xdg/autostart
|
||||
|
|
|
@ -0,0 +1,168 @@
|
|||
[Default Applications]
|
||||
application/ogg=io.elementary.music.desktop
|
||||
application/oxps=org.gnome.Evince.desktop
|
||||
application/pdf=org.gnome.Evince.desktop
|
||||
application/postscript=org.gnome.Evince.desktop
|
||||
application/vnd.ms-xpsdocument=org.gnome.Evince.desktop
|
||||
application/vnd.rn-realmedia=io.elementary.videos.desktop
|
||||
application/x-ar=org.gnome.FileRoller.desktop
|
||||
application/x-arj=org.gnome.FileRoller.desktop
|
||||
application/x-bzdvi=org.gnome.Evince.desktop
|
||||
application/x-bzip-compressed-tar=org.gnome.FileRoller.desktop
|
||||
application/x-bzip=org.gnome.FileRoller.desktop
|
||||
application/x-bzpdf=org.gnome.Evince.desktop
|
||||
application/x-bzpostscript=org.gnome.Evince.desktop
|
||||
application/x-cbr=org.gnome.Evince.desktop
|
||||
application/x-cbt=org.gnome.Evince.desktop
|
||||
application/x-cbz=org.gnome.Evince.desktop
|
||||
application/x-compress=org.gnome.FileRoller.desktop
|
||||
application/x-compressed-tar=org.gnome.FileRoller.desktop
|
||||
application/x-dvi=org.gnome.Evince.desktop
|
||||
application/x-ear=org.gnome.FileRoller.desktop
|
||||
application/x-extension-m4a=io.elementary.videos.desktop
|
||||
application/x-extension-mp4=io.elementary.videos.desktop
|
||||
application/x-flac=io.elementary.music.desktop
|
||||
application/x-gtar=org.gnome.FileRoller.desktop
|
||||
application/x-gzdvi=org.gnome.Evince.desktop
|
||||
application/x-gzip=org.gnome.FileRoller.desktop
|
||||
application/x-gzpdf=org.gnome.Evince.desktop
|
||||
application/x-gzpostscript=org.gnome.Evince.desktop
|
||||
application/x-lha=org.gnome.FileRoller.desktop
|
||||
application/x-lhz=org.gnome.FileRoller.desktop
|
||||
application/x-lzop=org.gnome.FileRoller.desktop
|
||||
application/x-matroska=io.elementary.videos.desktop
|
||||
application/x-ogg=io.elementary.music.desktop
|
||||
application/x-perl=io.elementary.code.desktop
|
||||
application/x-rar-compressed=org.gnome.FileRoller.desktop
|
||||
application/x-rar=org.gnome.FileRoller.desktop
|
||||
application/x-rpm=org.gnome.FileRoller.desktop
|
||||
application/x-tar=org.gnome.FileRoller.desktop
|
||||
application/x-war=org.gnome.FileRoller.desktop
|
||||
application/x-xz-compressed-tar=org.gnome.FileRoller.desktop
|
||||
application/x-xz=org.gnome.FileRoller.desktop
|
||||
application/x-xzpdf=org.gnome.Evince.desktop
|
||||
application/x-zip-compressed=org.gnome.FileRoller.desktop
|
||||
application/x-zip=org.gnome.FileRoller.desktop
|
||||
application/x-zoo=org.gnome.FileRoller.desktop
|
||||
application/xhtml+xml=org.gnome.Epiphany.desktop
|
||||
application/zip=org.gnome.FileRoller.desktop
|
||||
audio/3gpp=io.elementary.music.desktop
|
||||
audio/ac3=io.elementary.music.desktop
|
||||
audio/AMR-WB=io.elementary.music.desktop
|
||||
audio/AMR=io.elementary.music.desktop
|
||||
audio/basic=io.elementary.music.desktop
|
||||
audio/flac=io.elementary.music.desktop
|
||||
audio/midi=io.elementary.music.desktop
|
||||
audio/mp4=io.elementary.music.desktop
|
||||
audio/mpeg=io.elementary.music.desktop
|
||||
audio/mpegurl=io.elementary.music.desktop
|
||||
audio/ogg=io.elementary.music.desktop
|
||||
audio/prs.sid=io.elementary.music.desktop
|
||||
audio/vnd.rn-realaudio=io.elementary.music.desktop
|
||||
audio/x-ape=io.elementary.music.desktop
|
||||
audio/x-flac=io.elementary.music.desktop
|
||||
audio/x-gsm=io.elementary.music.desktop
|
||||
audio/x-it=io.elementary.music.desktop
|
||||
audio/x-m4a=io.elementary.music.desktop
|
||||
audio/x-matroska=io.elementary.music.desktop
|
||||
audio/x-mod=io.elementary.music.desktop
|
||||
audio/x-mp3=io.elementary.music.desktop
|
||||
audio/x-mpeg=io.elementary.music.desktop
|
||||
audio/x-mpegurl=io.elementary.music.desktop
|
||||
audio/x-ms-asf=io.elementary.music.desktop
|
||||
audio/x-ms-asx=io.elementary.music.desktop
|
||||
audio/x-ms-wax=io.elementary.music.desktop
|
||||
audio/x-ms-wma=io.elementary.music.desktop
|
||||
audio/x-musepack=io.elementary.music.desktop
|
||||
audio/x-pn-aiff=io.elementary.music.desktop
|
||||
audio/x-pn-au=io.elementary.music.desktop
|
||||
audio/x-pn-realaudio-plugin=io.elementary.music.desktop
|
||||
audio/x-pn-realaudio=io.elementary.music.desktop
|
||||
audio/x-pn-wav=io.elementary.music.desktop
|
||||
audio/x-pn-windows-acm=io.elementary.music.desktop
|
||||
audio/x-real-audio=io.elementary.music.desktop
|
||||
audio/x-realaudio=io.elementary.music.desktop
|
||||
audio/x-sbc=io.elementary.music.desktop
|
||||
audio/x-scpls=io.elementary.music.desktop
|
||||
audio/x-speex=io.elementary.music.desktop
|
||||
audio/x-tta=io.elementary.music.desktop
|
||||
audio/x-vorbis+ogg=io.elementary.music.desktop
|
||||
audio/x-vorbis=io.elementary.music.desktop
|
||||
audio/x-wav=io.elementary.music.desktop
|
||||
audio/x-wavpack=io.elementary.music.desktop
|
||||
audio/x-xm=io.elementary.music.desktop
|
||||
image/bmp=io.elementary.photos-viewer.desktop
|
||||
image/gif=io.elementary.photos-viewer.desktop
|
||||
image/jpeg=io.elementary.photos-viewer.desktop
|
||||
image/jpg=io.elementary.photos-viewer.desktop
|
||||
image/pjpeg=io.elementary.photos-viewer.desktop
|
||||
image/png=io.elementary.photos-viewer.desktop
|
||||
image/tiff=io.elementary.photos-viewer.desktop
|
||||
image/vnd.djvu=org.gnome.Evince.desktop
|
||||
image/vnd.rn-realpix=io.elementary.videos.desktop
|
||||
image/webp=io.elementary.photos-viewer.desktop
|
||||
image/x-bmp=io.elementary.photos-viewer.desktop
|
||||
image/x-bzeps=org.gnome.Evince.desktop
|
||||
image/x-eps=org.gnome.Evince.desktop
|
||||
image/x-gzeps=org.gnome.Evince.desktop
|
||||
image/x-png=io.elementary.photos-viewer.desktop
|
||||
inode/directory=io.elementary.files.desktop
|
||||
misc/ultravox=io.elementary.videos.desktop
|
||||
multipart/x-zip=org.gnome.FileRoller.desktop
|
||||
text/calendar=io.elementary.calendar.desktop
|
||||
text/html=org.gnome.Epiphany.desktop
|
||||
text/mathml=io.elementary.code.desktop
|
||||
text/plain=io.elementary.code.desktop
|
||||
text/x-chdr=io.elementary.code.desktop
|
||||
text/x-csrc=io.elementary.code.desktop
|
||||
text/x-dtd=io.elementary.code.desktop
|
||||
text/x-java=io.elementary.code.desktop
|
||||
text/x-python=io.elementary.code.desktop
|
||||
text/x-sql=io.elementary.code.desktop
|
||||
text/xml=io.elementary.code.desktop
|
||||
video/3gpp=io.elementary.videos.desktop
|
||||
video/dv=io.elementary.videos.desktop
|
||||
video/fli=io.elementary.videos.desktop
|
||||
video/flv=io.elementary.videos.desktop
|
||||
video/mp2t=io.elementary.videos.desktop
|
||||
video/mp4=io.elementary.videos.desktop
|
||||
video/mp4v-es=io.elementary.videos.desktop
|
||||
video/mpeg=io.elementary.videos.desktop
|
||||
video/msvideo=io.elementary.videos.desktop
|
||||
video/ogg=io.elementary.videos.desktop
|
||||
video/quicktime=io.elementary.videos.desktop
|
||||
video/vivo=io.elementary.videos.desktop
|
||||
video/vnd.divx=io.elementary.videos.desktop
|
||||
video/vnd.rn-realvideo=io.elementary.videos.desktop
|
||||
video/vnd.vivo=io.elementary.videos.desktop
|
||||
video/webm=io.elementary.videos.desktop
|
||||
video/x-anim=io.elementary.videos.desktop
|
||||
video/x-avi=io.elementary.videos.desktop
|
||||
video/x-flc=io.elementary.videos.desktop
|
||||
video/x-fli=io.elementary.videos.desktop
|
||||
video/x-flic=io.elementary.videos.desktop
|
||||
video/x-flv=io.elementary.videos.desktop
|
||||
video/x-m4v=io.elementary.videos.desktop
|
||||
video/x-matroska=io.elementary.videos.desktop
|
||||
video/x-mpeg=io.elementary.videos.desktop
|
||||
video/x-ms-asf=io.elementary.videos.desktop
|
||||
video/x-ms-asx=io.elementary.videos.desktop
|
||||
video/x-ms-wm=io.elementary.videos.desktop
|
||||
video/x-ms-wmv=io.elementary.videos.desktop
|
||||
video/x-ms-wmx=io.elementary.videos.desktop
|
||||
video/x-ms-wvx=io.elementary.videos.desktop
|
||||
video/x-msvideo=io.elementary.videos.desktop
|
||||
video/x-nsv=io.elementary.videos.desktop
|
||||
video/x-ogm+ogg=io.elementary.videos.desktop
|
||||
video/x-theora+ogg=io.elementary.videos.desktop
|
||||
video/x-totem-stream=io.elementary.videos.desktop
|
||||
x-content/image-dcf=io.elementary.photos.desktop
|
||||
x-content/image-picturecd=io.elementary.photos.desktop
|
||||
x-content/video-dvd=io.elementary.videos.desktop
|
||||
x-content/video-svcd=io.elementary.videos.desktop
|
||||
x-content/video-vcd=io.elementary.videos.desktop
|
||||
x-scheme-handler/http=org.gnome.Epiphany.desktop
|
||||
x-scheme-handler/https=org.gnome.Epiphany.desktop
|
||||
x-scheme-handler/mailto=org.gnome.Evolution.desktop
|
||||
x-scheme-handler/trash=io.elementary.files.desktop
|
||||
|
Loading…
Reference in a new issue