package.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from pisi import api as pisiapi
  4. import platform
  5. import os
  6. fileassociations = open("/usr/share/applications/mimeapps.list","a")
  7. fileassociations.write("application/x-pisi=package-manager-helper.desktop;\n")
  8. fileassociations.write("x-scheme-handler/http=mozillafirefox.desktop;\n")
  9. fileassociations.write("x-scheme-handler/https=mozillafirefox.desktop;\n")
  10. fileassociations.write("x-scheme-handler/about=mozillafirefox.desktop;\n")
  11. fileassociations.write("x-scheme-handler/mailto=sylpheed.desktop;\n")
  12. fileassociations.write("application/x-extension-eml=sylpheed.desktop;\n")
  13. fileassociations.write("message/rfc822=sylpheed.desktop;\n")
  14. fileassociations.write("inode/directory=caja-folder-handler.desktop;\n")
  15. fileassociations.write("text/plain=pluma.desktop;\n")
  16. fileassociations.write("audio/mpeg=gnome-mplayer.desktop;\n")
  17. fileassociations.write("audio/x-mpegurl=gnome-mplayer.desktop;\n")
  18. fileassociations.write("audio/x-scpls=gnome-mplayer.desktop;\n")
  19. fileassociations.write("audio/x-vorbis+ogg=gnome-mplayer.desktop;\n")
  20. fileassociations.write("audio/x-wav=gnome-mplayer.desktop;\n")
  21. fileassociations.write("video/mp4=smplayer_enqueue.desktop;\n")
  22. fileassociations.write("video/mpeg=smplayer_enqueue.desktop;\n")
  23. fileassociations.write("video/mp2t=smplayer_enqueue.desktop;\n")
  24. fileassociations.write("video/msvideo=smplayer_enqueue.desktop;\n")
  25. fileassociations.write("video/quicktime=smplayer_enqueue.desktop;\n")
  26. fileassociations.write("video/webm=smplayer_enqueue.desktop;\n")
  27. fileassociations.write("video/x-avi=smplayer_enqueue.desktop;\n")
  28. fileassociations.write("video/x-flv=smplayer_enqueue.desktop;\n")
  29. fileassociations.write("video/x-matroska=smplayer_enqueue.desktop;\n")
  30. fileassociations.write("video/x-mpeg=smplayer_enqueue.desktop;\n")
  31. fileassociations.write("video/x-ogm+ogg=smplayer_enqueue.desktop;\n")
  32. fileassociations.write("image/bmp=eom.desktop;\n")
  33. fileassociations.write("image/gif=eom.desktop;\n")
  34. fileassociations.write("image/jpeg=eom.desktop;\n")
  35. fileassociations.write("image/png=eom.desktop;\n")
  36. fileassociations.write("image/tiff=eom.desktop;\n")
  37. fileassociations.write("image/x-ms-bmp=eom.desktop;\n")
  38. fileassociations.write("text/plain=pluma.desktop;\n")
  39. fileassociations.write("text/x-patch=pluma.desktop;\n")
  40. fileassociations.write("text/x-patch=pluma.desktop;\n")
  41. fileassociations.write("text/x-python=pluma.desktop;\n")
  42. fileassociations.write("text/x-python=pluma.desktop;\n")
  43. fileassociations.write("application/xml=pluma.desktop;\n")
  44. fileassociations.write("application/xml=pluma.desktop;\n")
  45. fileassociations.write("application/pdf=atril.desktop;\n")
  46. fileassociations.write("application/zip=engrampa.desktop;\n")
  47. fileassociations.write("application/x-rar=engrampa.desktop;\n")
  48. fileassociations.write("application/x-compressed-tar=engrampa.desktop;\n")
  49. fileassociations.write("application/x-tar=engrampa.desktop;\n")
  50. fileassociations.write("application/x-bzip-compressed-tar=engrampa.desktop;\n")
  51. fileassociations.close()