зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443736 - Improved mechanism for handing opening files after downloading with snap r=jlorenzo
MozReview-Commit-ID: 6WR2HBJRlBy --HG-- extra : rebase_source : cfc5fe1450778f038e5f9c47b333c86d9ab07e5c
This commit is contained in:
Родитель
c976615ed6
Коммит
2f58dc2d51
|
@ -1,7 +0,0 @@
|
|||
<mime-info
|
||||
xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/octet-stream">
|
||||
<comment>Unknown</comment>
|
||||
<glob pattern="*"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
|
@ -1,4 +1,264 @@
|
|||
[Default Applications]
|
||||
application/octet-stream=xdg-open.desktop
|
||||
text/plain=xdg-open.desktop
|
||||
inode/directory=xdg-open.desktop
|
||||
application/csv=xdg-open.html
|
||||
application/excel=xdg-open.html
|
||||
application/msexcel=xdg-open.html
|
||||
application/msword=xdg-open.html
|
||||
application/ogg=xdg-open.html
|
||||
application/oxps=xdg-open.html
|
||||
application/pdf=xdg-open.html
|
||||
application/postscript=xdg-open.html
|
||||
application/rtf=xdg-open.html
|
||||
application/tab-separated-values=xdg-open.html
|
||||
application/vnd.debian.binary-package=xdg-open.html
|
||||
application/vnd.ms-cab-compressed=xdg-open.html
|
||||
application/vnd.lotus-1-2-3=xdg-open.html
|
||||
application/vnd.ms-excel=xdg-open.html
|
||||
application/vnd.ms-word=xdg-open.html
|
||||
application/vnd.ms-xpsdocument=xdg-open.html
|
||||
application/vnd.rn-realmedia=xdg-open.html
|
||||
application/vnd.sun.xml.base=xdg-open.html
|
||||
application/vnd.sun.xml.calc=xdg-open.html
|
||||
application/vnd.sun.xml.calc.template=xdg-open.html
|
||||
application/vnd.sun.xml.draw=xdg-open.html
|
||||
application/vnd.sun.xml.draw.template=xdg-open.html
|
||||
application/vnd.sun.xml.math=xdg-open.html
|
||||
application/vnd.sun.xml.writer=xdg-open.html
|
||||
application/vnd.sun.xml.writer.template=xdg-open.html
|
||||
application/vnd.sun.xml.writer.global=xdg-open.html
|
||||
application/vnd.oasis.opendocument.database=xdg-open.html
|
||||
application/vnd.oasis.opendocument.formula=xdg-open.html
|
||||
application/vnd.oasis.opendocument.graphics=xdg-open.html
|
||||
application/vnd.oasis.opendocument.graphics-template=xdg-open.html
|
||||
application/vnd.oasis.opendocument.presentation=xdg-open.html
|
||||
application/vnd.oasis.opendocument.presentation-template=xdg-open.html
|
||||
application/vnd.oasis.opendocument.spreadsheet=xdg-open.html
|
||||
application/vnd.oasis.opendocument.spreadsheet-template=xdg-open.html
|
||||
application/vnd.oasis.opendocument.text=xdg-open.html
|
||||
application/vnd.oasis.opendocument.text-template=xdg-open.html
|
||||
application/vnd.oasis.opendocument.text-web=xdg-open.html
|
||||
application/vnd.oasis.opendocument.text-master=xdg-open.html
|
||||
application/vnd.sun.xml.impress=xdg-open.html
|
||||
application/vnd.sun.xml.impress.template=xdg-open.html
|
||||
application/vnd.stardivision.calc=xdg-open.html
|
||||
application/vnd.stardivision.draw=xdg-open.html
|
||||
application/vnd.stardivision.impress=xdg-open.html
|
||||
application/vnd.stardivision.math=xdg-open.html
|
||||
application/vnd.stardivision.writer=xdg-open.html
|
||||
application/mspowerpoint=xdg-open.html
|
||||
application/vnd.ms-powerpoint=xdg-open.html
|
||||
application/vnd.wordperfect=xdg-open.html
|
||||
application/wordperfect=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.template=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.template=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.presentationml.slide=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.presentationml.slideshow=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation=xdg-open.html
|
||||
application/vnd.openxmlformats-officedocument.presentationml.template=xdg-open.html
|
||||
application/x-123=xdg-open.html
|
||||
application/x-abiword=xdg-open.html
|
||||
application/x-applix-spreadsheet=xdg-open.html
|
||||
application/x-ar=xdg-open.html
|
||||
application/x-arj=xdg-open.html
|
||||
application/x-audacity-project=xdg-open.html
|
||||
application/x-bzdvi=xdg-open.html
|
||||
application/x-bzip-compressed-tar=xdg-open.html
|
||||
application/x-bzip=xdg-open.html
|
||||
application/x-bzpdf=xdg-open.html
|
||||
application/x-bzpostscript=xdg-open.html
|
||||
application/x-cbr=xdg-open.html
|
||||
application/x-cbt=xdg-open.html
|
||||
application/x-cbz=xdg-open.html
|
||||
application/x-compressed-tar=xdg-open.html
|
||||
application/x-compress=xdg-open.html
|
||||
application/x-cab=xdg-open.html
|
||||
application/x-ms-cab-compressed=xdg-open.html
|
||||
application/x-deb=xdg-open.html
|
||||
application/x-debian-package=xdg-open.html
|
||||
application/x-dos_ms_excel=xdg-open.html
|
||||
application/x-dvi=xdg-open.html
|
||||
application/x-ear=xdg-open.html
|
||||
application/x-excel=xdg-open.html
|
||||
application/x-extension-m4a=xdg-open.html
|
||||
application/x-extension-mp4=xdg-open.html
|
||||
application/x-flac=xdg-open.html
|
||||
application/x-glade=xdg-open.html
|
||||
application/x-gnumeric=xdg-open.html
|
||||
application/x-gtar=xdg-open.html
|
||||
application/x-gzdvi=xdg-open.html
|
||||
application/x-gzip=xdg-open.html
|
||||
application/x-gzpdf=xdg-open.html
|
||||
application/x-gzpostscript=xdg-open.html
|
||||
application/xhtml+xml=xdg-open.html
|
||||
application/x-jar=xdg-open.html
|
||||
application/x-java-archive=xdg-open.html
|
||||
application/x-java-jnlp-file=xdg-open.html
|
||||
application/x-lha=xdg-open.html
|
||||
application/x-lhz=xdg-open.html
|
||||
application/xls=xdg-open.html
|
||||
application/x-lzop=xdg-open.html
|
||||
application/x-matroska=xdg-open.html
|
||||
application/x-mps=xdg-open.html
|
||||
application/x-ms-excel=xdg-open.html
|
||||
application/x-msexcel=xdg-open.html
|
||||
application/x-ogg=xdg-open.html
|
||||
application/x-oleo=xdg-open.html
|
||||
application/x-perl=xdg-open.html
|
||||
application/x-planperfect=xdg-open.html
|
||||
application/x-quattropro=xdg-open.html
|
||||
application/x-rar-compressed=xdg-open.html
|
||||
application/x-rar=xdg-open.html
|
||||
application/x-rpm=xdg-open.html
|
||||
application/x-sc=xdg-open.html
|
||||
application/x-shockwave-flash=xdg-open.html
|
||||
application/x-sylk=xdg-open.html
|
||||
application/x-tar=xdg-open.html
|
||||
application/x-war=xdg-open.html
|
||||
application/x-xbase=xdg-open.html
|
||||
application/x-xls=xdg-open.html
|
||||
application/x-xzpdf=xdg-open.html
|
||||
application/x-zip-compressed=xdg-open.html
|
||||
application/x-zip=xdg-open.html
|
||||
application/x-zoo=xdg-open.html
|
||||
application/zip=xdg-open.html
|
||||
audio/3gpp=xdg-open.html
|
||||
audio/ac3=xdg-open.html
|
||||
audio/AMR=xdg-open.html
|
||||
audio/AMR-WB=xdg-open.html
|
||||
audio/basic=xdg-open.html
|
||||
audio/flac=xdg-open.html
|
||||
audio/midi=xdg-open.html
|
||||
audio/mp4=xdg-open.html
|
||||
audio/mpeg=xdg-open.html
|
||||
audio/mpegurl=xdg-open.html
|
||||
audio/ogg=xdg-open.html
|
||||
audio/prs.sid=xdg-open.html
|
||||
audio/vnd.rn-realaudio=xdg-open.html
|
||||
audio/x-ape=xdg-open.html
|
||||
audio/x-flac=xdg-open.html
|
||||
audio/x-gsm=xdg-open.html
|
||||
audio/x-it=xdg-open.html
|
||||
audio/x-m4a=xdg-open.html
|
||||
audio/x-matroska=xdg-open.html
|
||||
audio/x-mod=xdg-open.html
|
||||
audio/x-mp3=xdg-open.html
|
||||
audio/x-mpeg=xdg-open.html
|
||||
audio/x-mpegurl=xdg-open.html
|
||||
audio/x-ms-asf=xdg-open.html
|
||||
audio/x-ms-asx=xdg-open.html
|
||||
audio/x-ms-wax=xdg-open.html
|
||||
audio/x-ms-wma=xdg-open.html
|
||||
audio/x-musepack=xdg-open.html
|
||||
audio/x-pn-aiff=xdg-open.html
|
||||
audio/x-pn-au=xdg-open.html
|
||||
audio/x-pn-realaudio=xdg-open.html
|
||||
audio/x-pn-realaudio-plugin=xdg-open.html
|
||||
audio/x-pn-wav=xdg-open.html
|
||||
audio/x-pn-windows-acm=xdg-open.html
|
||||
audio/x-realaudio=xdg-open.html
|
||||
audio/x-real-audio=xdg-open.html
|
||||
audio/x-sbc=xdg-open.html
|
||||
audio/x-scpls=xdg-open.html
|
||||
audio/x-speex=xdg-open.html
|
||||
audio/x-tta=xdg-open.html
|
||||
audio/x-wav=xdg-open.html
|
||||
audio/x-wavpack=xdg-open.html
|
||||
audio/x-vorbis=xdg-open.html
|
||||
audio/x-vorbis+ogg=xdg-open.html
|
||||
audio/x-xm=xdg-open.html
|
||||
image/bmp=xdg-open.html
|
||||
image/gif=xdg-open.html
|
||||
image/jpeg=xdg-open.html
|
||||
image/jpg=xdg-open.html
|
||||
image/pjpeg=xdg-open.html
|
||||
image/png=xdg-open.html
|
||||
image/svg+xml=xdg-open.html
|
||||
image/tiff=xdg-open.html
|
||||
image/vnd.djvu=xdg-open.html
|
||||
image/vnd.rn-realpix=xdg-open.html
|
||||
image/x-bmp=xdg-open.html
|
||||
image/x-bzeps=xdg-open.html
|
||||
image/x-eps=xdg-open.html
|
||||
image/x-gray=xdg-open.html
|
||||
image/x-gzeps=xdg-open.html
|
||||
image/x-icb=xdg-open.html
|
||||
image/x-ico=xdg-open.html
|
||||
image/x-png=xdg-open.html
|
||||
image/x-portable-anymap=xdg-open.html
|
||||
image/x-portable-bitmap=xdg-open.html
|
||||
image/x-portable-graymap=xdg-open.html
|
||||
image/x-portable-pixmap=xdg-open.html
|
||||
image/x-psd=xdg-open.html
|
||||
image/x-xbitmap=xdg-open.html
|
||||
image/x-xpixmap=xdg-open.html
|
||||
inode/directory=xdg-open.html
|
||||
misc/ultravox=xdg-open.html
|
||||
multipart/x-zip=xdg-open.html
|
||||
text/abiword=xdg-open.html
|
||||
text/calendar=xdg-open.html
|
||||
text/comma-separated-values=xdg-open.html
|
||||
text/csv=xdg-open.html
|
||||
text/html=xdg-open.html
|
||||
text/plain=xdg-open.html
|
||||
text/richtext=xdg-open.html
|
||||
text/rtf=xdg-open.html
|
||||
text/spreadsheet=xdg-open.html
|
||||
text/tab-separated-values=xdg-open.html
|
||||
text/x-comma-separated-values=xdg-open.html
|
||||
text/x-c++hdr=xdg-open.html
|
||||
text/x-c++src=xdg-open.html
|
||||
text/x-xsrc=xdg-open.html
|
||||
text/x-chdr=xdg-open.html
|
||||
text/x-csrc=xdg-open.html
|
||||
text/x-dtd=xdg-open.html
|
||||
text/x-java=xdg-open.html
|
||||
text/mathml=xdg-open.html
|
||||
text/x-python=xdg-open.html
|
||||
text/x-sql=xdg-open.html
|
||||
text/xml=xdg-open.html
|
||||
video/3gpp=xdg-open.html
|
||||
video/dv=xdg-open.html
|
||||
video/fli=xdg-open.html
|
||||
video/flv=xdg-open.html
|
||||
video/mp2t=xdg-open.html
|
||||
video/mp4=xdg-open.html
|
||||
video/mp4v-es=xdg-open.html
|
||||
video/mpeg=xdg-open.html
|
||||
video/msvideo=xdg-open.html
|
||||
video/ogg=xdg-open.html
|
||||
video/quicktime=xdg-open.html
|
||||
video/vivo=xdg-open.html
|
||||
video/vnd.divx=xdg-open.html
|
||||
video/vnd.rn-realvideo=xdg-open.html
|
||||
video/vnd.vivo=xdg-open.html
|
||||
video/webm=xdg-open.html
|
||||
video/x-anim=xdg-open.html
|
||||
video/x-avi=xdg-open.html
|
||||
video/x-flc=xdg-open.html
|
||||
video/x-fli=xdg-open.html
|
||||
video/x-flic=xdg-open.html
|
||||
video/x-flv=xdg-open.html
|
||||
video/x-m4v=xdg-open.html
|
||||
video/x-matroska=xdg-open.html
|
||||
video/x-mpeg=xdg-open.html
|
||||
video/x-ms-asf=xdg-open.html
|
||||
video/x-ms-asx=xdg-open.html
|
||||
video/x-msvideo=xdg-open.html
|
||||
video/x-ms-wm=xdg-open.html
|
||||
video/x-ms-wmv=xdg-open.html
|
||||
video/x-ms-wmx=xdg-open.html
|
||||
video/x-ms-wvx=xdg-open.html
|
||||
video/x-nsv=xdg-open.html
|
||||
video/x-ogm+ogg=xdg-open.html
|
||||
video/x-theora+ogg=xdg-open.html
|
||||
video/x-totem-stream=xdg-open.html
|
||||
x-content/video-dvd=xdg-open.html
|
||||
x-content/video-vcd=xdg-open.html
|
||||
x-content/video-svcd=xdg-open.html
|
||||
x-content/audio-cdda=xdg-open.html
|
||||
x-content/audio-dvd=xdg-open.html
|
||||
x-content/audio-player=xdg-open.html
|
||||
x-content/image-dcf=xdg-open.html
|
||||
x-content/image-picturecd=xdg-open.html
|
||||
zz-application/zz-winassoc-xls=xdg-open.html
|
||||
|
|
|
@ -49,7 +49,7 @@ done
|
|||
|
||||
# Generate snapcraft manifest
|
||||
sed -e "s/@VERSION@/${VERSION}/g" -e "s/@BUILD_NUMBER@/${BUILD_NUMBER}/g" snapcraft.yaml.in > "${WORKSPACE}/snapcraft.yaml"
|
||||
cp -v "$SCRIPT_DIRECTORY/mime"{-handler.xml,apps.list} "$WORKSPACE"
|
||||
cp -v "$SCRIPT_DIRECTORY/mimeapps.list" "$WORKSPACE"
|
||||
cd "${WORKSPACE}"
|
||||
snapcraft
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче