GET RID OF GIMP as a pdf viewer.

The new GIMP supports pdf, and, associates itself with PDF files, which is really annoying. I used to use evince as the default viewer. Here is the way I find to set it back.

There are two files we need to edit. One is “/usr/share/applications/mimeinfo.cache”, which controls file associations. The other is “/usr/share/applications/gimp.desktop”, which we can disassociate GIMP with pdf files forever.

1. edit “/usr/share/applications/mimeinfo.cache”, search “application/pdf”, delete “gimp.desktop”

2. edit “/usr/share/applications/gimp.desktop”, search “MimeType”, delete “application/pdf”

btw, i am using Archlinux with Gnome

?? in usb device

Issue: The file/directory names in file system are ?? when auto-mounted using HAL. [Archlinux/Gnome]

Solution:

  1. open gconf-editor
  2. system > storage > default_options > vfat
  3. append “iocharset=utf8” to the value of “mount_options”

python下编译成pyc和pyo

其实很简单

python -m py_compile exaile.py

编译成pyc文件

python -O -m py_compile exaile.py

编译成pyo文件
—————-
ps,其实是为了解决如下问题
gnome-panel里有个music-applet的plugin
exaile的rating scale 是0-5星,而music-applet里是0-8星
将/usr/lib/python2.6/site-packages/musicapplet/plugins/exaile.py里的scale改成0-5
然后用上述方法编译一下,再重新载入music-applet就解决问题了.