! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
keyfile-settings can't be disable
Status:
RESOLVED: MOVED
Product:
Mousepad
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2015-03-08 21:54:30 CET
It seems that --enable-keyfile-settings can't be disabled. Either it's 'yes' or it's 'default' but it can't be set to 'no' to disable gsettings dependency altogether.

This is on 0.4.0.
Comment 1 Matthew Brush editbugs 2015-03-08 22:27:14 CET
GSettings dependency is not optional, only whether to use the keyfile backend or to use the DBus backend. It's possible the configure.ac is not correct though, my Autofu is weak.
Comment 2 Yves-Alexis Perez editbugs 2015-03-08 22:29:13 CET
(In reply to Matthew Brush from comment #1)
> GSettings dependency is not optional, only whether to use the keyfile
> backend or to use the DBus backend. It's possible the configure.ac is not
> correct though, my Autofu is weak.

Then I'm a bit unsure about what are the keyfile and dbus backends :) But in any case, I'm a bit disappointed with the enforced Gsettings stuff (especially since the rest of Xfce uses xfconf).
Comment 3 Matthew Brush editbugs 2015-03-08 22:33:27 CET
(In reply to Yves-Alexis Perez from comment #2)
> (In reply to Matthew Brush from comment #1)
> > GSettings dependency is not optional, only whether to use the keyfile
> > backend or to use the DBus backend. It's possible the configure.ac is not
> > correct though, my Autofu is weak.
> 
> Then I'm a bit unsure about what are the keyfile and dbus backends :) But in
> any case, I'm a bit disappointed with the enforced Gsettings stuff
> (especially since the rest of Xfce uses xfconf).

The keyfile backend basically makes it like the previous version using text file in your home dir, except it's more robust and easier to sync changes. The DBus backend is basically like an improved version of Xfconf, which was written in a time when GSettings didn't exist and builtin into GIO, meaning you have it if you can run Mousepad anyway.
Comment 4 Yves-Alexis Perez editbugs 2015-03-08 22:36:26 CET
(In reply to Matthew Brush from comment #3)
> The keyfile backend basically makes it like the previous version using text
> file in your home dir, except it's more robust and easier to sync changes.
> The DBus backend is basically like an improved version of Xfconf, which was
> written in a time when GSettings didn't exist and builtin into GIO, meaning
> you have it if you can run Mousepad anyway.


Maybe, and maybe it's because of Debian specific stuff, but adding gsettings in the loop brings dconf as dependency.
Comment 5 Matthew Brush editbugs 2015-03-08 22:40:12 CET
(In reply to Yves-Alexis Perez from comment #4)
> (In reply to Matthew Brush from comment #3)
> > The keyfile backend basically makes it like the previous version using text
> > file in your home dir, except it's more robust and easier to sync changes.
> > The DBus backend is basically like an improved version of Xfconf, which was
> > written in a time when GSettings didn't exist and builtin into GIO, meaning
> > you have it if you can run Mousepad anyway.
> 
> 
> Maybe, and maybe it's because of Debian specific stuff, but adding gsettings
> in the loop brings dconf as dependency.

Mousepad uses the gsettings*.[ch] stuff here:
https://git.gnome.org/browse/glib/tree/gio

I checked to make sure it was available in GLib versions allowed for Xfce 4.12 applications. I'm not sure about how it is packaged though, maybe try `--no-install-recommends` option to `apt-get`?
Comment 6 Yves-Alexis Perez editbugs 2015-03-08 22:41:57 CET
(In reply to Matthew Brush from comment #5)
> (In reply to Yves-Alexis Perez from comment #4)
> > (In reply to Matthew Brush from comment #3)
> > > The keyfile backend basically makes it like the previous version using text
> > > file in your home dir, except it's more robust and easier to sync changes.
> > > The DBus backend is basically like an improved version of Xfconf, which was
> > > written in a time when GSettings didn't exist and builtin into GIO, meaning
> > > you have it if you can run Mousepad anyway.
> > 
> > 
> > Maybe, and maybe it's because of Debian specific stuff, but adding gsettings
> > in the loop brings dconf as dependency.
> 
> Mousepad uses the gsettings*.[ch] stuff here:
> https://git.gnome.org/browse/glib/tree/gio
> 
> I checked to make sure it was available in GLib versions allowed for Xfce
> 4.12 applications. I'm not sure about how it is packaged though, maybe try
> `--no-install-recommends` option to `apt-get`?

The dependencies are added at build time (I'm the debian maintainer) because a gsettings schema is installed, and thus a gsettings backend is needed. It seems the only gsettings backend is dconf.
Comment 7 Matthew Brush editbugs 2015-03-08 22:46:24 CET
(In reply to Yves-Alexis Perez from comment #6)
> The dependencies are added at build time (I'm the debian maintainer) because
> a gsettings schema is installed, and thus a gsettings backend is needed. It
> seems the only gsettings backend is dconf.

I don't know too much about packaging, but I specifically added special code paths to support the builtin keyfile backend so it could be freestanding:

https://git.gnome.org/browse/glib/tree/gio/gkeyfilesettingsbackend.c
Comment 8 Git Bot editbugs 2020-05-24 01:29:54 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/mousepad/-/issues/19.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #11662

Reported by:
Yves-Alexis Perez
Reported on: 2015-03-08
Last modified on: 2020-05-24

People

Assignee:
Matthew Brush
CC List:
1 user

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

Additional information