mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
205 stars 62 forks source link

pdf files do not open unless org.mate.lockdown.gschema.xml is installed #75

Closed gapan closed 10 years ago

gapan commented 10 years ago

The problem is that org.mate.lockdown.gschema.xml is part of mate-desktop and this creates an (artificial) dependency on mate-desktop, while atril could very well be a standalone doc viewer that doesn't need any other part of MATE installed. This is just a settings file, it could either be packaged with atril or ignored if not found.

The error is: (atril:884): Glib-GIO-ERROR **: Settings schema 'org.mate.lockdown' is not installed

Trace/breakpoint trap

You can reproduce it if you remove mate-desktop and unregister all its schemas.

flexiondotorg commented 10 years ago

What distro?

gapan commented 10 years ago

Salix/Slackware but I don't see how that matters as it is not a distro-specific problem. You should be able to reproduce it in any distribution.

stefano-k commented 10 years ago

Yes, unluckily gsettings crashes if schema is not available. We need to make it optional, like we did in other apps (like pluma, for example)

infirit commented 10 years ago

Here is the merge commit so one can apply this to atril and send a pull request. https://github.com/mate-desktop/pluma/commit/557fda5b12a5ff6d16cb1296871acdce1a2ddb25

raveit65 commented 10 years ago

For fedora i added a runtime require to mate-desktop-libs package in spec file which has the missing gsettings file. This fixes the issue on a non mate desktop without mate-desktop package. http://pkgs.fedoraproject.org/cgit/mate-document-viewer.git/commit/?h=f20&id=5bd32045d2e22f4d6c2872d54b2db79862d95f35

PS: for this reason i splitted the mate-desktop package in a small subpackage with the schemes