Summary: | Customizing mime-type icons in $XDG_CONFIG_HOME makes Gnome-2.24 fail to start | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jianwen Wei <wei.jianwen> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 238650 |
Description
Jianwen Wei
2009-07-13 14:46:48 UTC
Sorry, Steps to Reproduce should be : 1. Add a file named 'user-define.xml' to $XDG_CONFIG_HOME/mime/packages/ (~/.local/share/mime/packages, by default). The content is <?xml version="1.0"?> <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-type type="application/pdf"> <icon name="x-office-spreadsheet"/> </mime-type> </mime-info> 2. RUN update-mime 3. Restart Gnome by logging out and logging in. this works just fine here (although it's gnome 2.26 but I don't think it makes much of a difference). What I did: 1. add you modifications to ~/.local/share/mime/packages/user-extension-fdi.xml since there was this xml lying around. 2. run update-mime-database /home/eva/.local/share/mime/ (which is not the same thing as running just update-mime-database) 3. nautilus -q ; nautilus 4. enjoy my text files showing of with a spreadsheet icon What version of shared-mime-info do you have installed (if what I described is _exactly_ what you did) ? Thanks for the comments. I run on the Gnome 2.24. Following your steps will reproduce EXACTLY the same bug I mentioned in the report. 1. add you modifications to ~/.local/share/mime/packages/user-extension-fdi.xml, something like: <?xml version="1.0"?> <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-type type="application/pdf"> <icon name="x-office-spreadsheet"/> </mime-type> </mime-info 2. run update-mime-database ~/.local/share/mime/ 3. nautilus -q ; nautilus Guess what I get in the terminal ? ** Message: Initializing gksu extension... Segmentation fault Then naultilus fails to start, and all the icons on the desktop disappear... (In reply to comment #2) > this works just fine here (although it's gnome 2.26 but I don't think it makes > much of a difference). What I did: > > 1. add you modifications to ~/.local/share/mime/packages/user-extension-fdi.xml > since there was this xml lying around. > 2. run update-mime-database /home/eva/.local/share/mime/ (which is not the same > thing as running just update-mime-database) > 3. nautilus -q ; nautilus > 4. enjoy my text files showing of with a spreadsheet icon > > What version of shared-mime-info do you have installed (if what I described is > _exactly_ what you did) ? > Not sure this is going to be much more informative but, could you provide a backtrace of the nautilus crash ? See [1] for details on how to produce a useful backtrace. Also what is your shared-mime-info version ? [1] http://www.gentoo.org/proj/en/qa/backtraces.xml the shared-mime-info I use is 0.60 $ eix shared-mime-info [I] x11-misc/shared-mime-info Available versions: 0.60 Installed versions: 0.60(06:49:17 AM 07/09/2009) Homepage: http://freedesktop.org/wiki/Software/shared-mime-info Description: er, according to [1], producing useful backtrace require to rebuild the world with the new CFLAGS. Maybe I will have to rebuild the world for optimization of performance after the problem is setteled. An alternitave solution, or a more cost-effective solution is to udpdate Gnome to 2.26. But, I fail to build gnome-desktop-2.26 when updating. Maybe I will report another bug report. Anyway, thanks for your help! [1] http://www.gentoo.org/proj/en/qa/backtraces.xml (In reply to comment #4) > Not sure this is going to be much more informative but, could you provide a > backtrace of the nautilus crash ? See [1] for details on how to produce a > useful backtrace. Also what is your shared-mime-info version ? > > [1] http://www.gentoo.org/proj/en/qa/backtraces.xml > > But, I fail to build gnome-desktop-2.26 when updating. Maybe I will report
> another bug report.
that should be handled by the migration guide, if not, feel free to open another bug report for that.
In the meantime, closing needinfo, do not hesitate to reopen this bug once you have the requested information.
|