Paul Johnson
2009-May-05 20:57 UTC
[CentOS] kghostview and xdg-open. Need to fix problem across whole system
In Centos 5.3, a bad problem has surfaced in user land. We want to use either Evince or Adobe acroread as the pdf view, but the update of kdegraphics has somehow screwed up these systems so that the odious, horrible, awful pdf viewer kghostview is used. It is what you get when you doubleclick on pdf files, it is what programs get when they try to use xdg-open framework. This happens even though xdg-open seems to think it is pointing at Adobe. $ xdg-mime query filetype manual.pdf application/pdf $ xdg-mime query default application/pdf AdobeReader.desktop I've had it happen before that users make mistakes and then the mime types are accidentally re-defined in the user accounts. I have not had it happen across all users accounts that something goes so wrong. How can I tell the Gnome mime system to always use evince for opening pdf, not kghostview? What's wrong with xdg-open? It says AdobeReader.desktop, but it points applications at the other. Thanks in advance PJ -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Rex Dieter
2009-May-06 16:49 UTC
[CentOS] kghostview and xdg-open. Need to fix problem across whole system
Paul Johnson wrote:> In Centos 5.3, a bad problem has surfaced in user land. We want to use > either Evince or Adobe acroread as the pdf view, but the update of > kdegraphics has somehow screwed up these systems so that the odious, > horrible, awful pdf viewer kghostview is used.It's most likely Acrobat Reader that f#$#$#d up here. It mucks with system copies of mimetypes, etc... My guess is that kdegraphics update simply replaced the muck'd system copies with known good ones. Now, opening pdf's from where is causing problems? Say, opening in nautilus, a webbrowser, what? -- Rex