summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* completion: Add missing commands to completion listPhilip Withnall2021-01-081-3/+3
| | | | | | | The `list-locks` and `blame` commands were missing in the completion script. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* completion: Drop nonexistent lock and unlock commands from completionPhilip Withnall2021-01-081-2/+2
| | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* bin/completion/dconf: Add compile to autocompleteAndreas Polnas2020-07-151-2/+2
| | | | | | | | | | | | | | | While working with Dconf I noticed in the bash CLI I was unable to autocomplete when typing "dconf compile" This fix will make it so the user is able to auto complete the compile option in bash. I have tested it on my Manjaro and PopOS! machines and it's working expected. As this is my first contribution please look twice so I have not missed anything. Signed-off-by: Andreas Polnas <andreas.polnas93@hotmail.com>
* bin: Add an option to ignore changes to locked keys during loadTomasz Miąsko2019-02-121-8/+35
| | | | | | | | | If load command attempts to change one of non-writable keys, the whole operation fails with an error and no changes are made. Add an `-f` option to the load command that skips non-writable keys and proceeds with remaining changes. Closes issue #1.
* Merge branch 'update-doc' into 'master'Daniel Playfair Cal2019-02-041-2/+14
|\ | | | | | | | | | | | | bin: Document update command directory argument Closes #39 See merge request GNOME/dconf!41
| * bin: Document update command directory argumentTomasz Miąsko2019-02-041-2/+14
| | | | | | | | | | | | | | | | | | | | | | Document that update command takes optional directory argument, which allows to run update in an arbitrary directory instead of the default one. The functionality itself have been added earlier for testing purposes, but it is generally useful so lets document its existence. Closes #39. Based on a patch contributed by Takao Fujiwara.
* | build: Make dconf client vapi installation optionalTomasz Miąsko2019-02-041-1/+1
|/ | | | | | | | | | | The client vapi is no longer used internally, but it introduces dependency on vala, since vapigen pkg-config file is required to determine where to install vapi file. Make clinet vapi file installation optional, and thus the dependency on vala itself. Issue #38.
* bin: Rewrite dconf utility in CTomasz Miąsko2019-01-296-799/+1176
| | | | | | | | | Intentional functional changes: * Update is no longer conditional on mtime. * Help information is shown on erroneous usage, but not otherwise. Fixes issue #38.
* bin: Indicate update failure with non-zero exit codeTomasz Miąsko2018-12-061-0/+7
| | | | Fixes issue #42.
* bin: Consistently handle invalid configuration in updateTomasz Miąsko2018-12-061-35/+28
| | | | | | | | | | | Consistently handle invalid database configuration by reporting the error and continuing with remaining databases. Functional changes from previous version: * When loading key-file fails: no change. * When group name is invalid: used to be ignored. * When key name is invalid: used to fail on an assertion. * When value is invalid: no change.
* Check mtimes of files when updating databasesMarek Kasik2018-11-281-7/+30
| | | | | | | | | Do not check just mtimes of directories in /etc/dconf/db/ but also mtimes of the files in those directories to catch all modifications in them. https://bugzilla.gnome.org/show_bug.cgi?id=708258 Closes: https://gitlab.gnome.org/GNOME/dconf/issues/11
* bin: Add optional directory argument for update commandTomasz Miąsko2018-11-152-2/+14
| | | | | This make it possible to create integration tests for dconf update without having access to SYSCONFDIR/dconf/db.
* bin: Consistently validate the number of argumentsTomasz Miąsko2018-11-152-0/+46
|
* bin: Sort output of list and dump commandsTomasz Miąsko2018-11-132-2/+16
|
* tests: Add tests for dconf utility toolTomasz Miąsko2018-11-131-1/+1
|
* Replace all hard-coded /etc path with sysconfdirwip/lantw/dont-hard-code-etcTing-Wei Lan2018-08-161-1/+4
| | | | | | | This is useful for JHBuild environments and systems that don't want to use /etc/dconf. https://bugzilla.gnome.org/show_bug.cgi?id=739299
* Namespace the dependencies variablesEmmanuele Bassi2018-08-111-2/+2
| | | | | | | | | | | | | The build currently, unintentionally, depends on side effects, namely: that a variable defined in a meson.build file will be valid for any other included meson.build file, until it gets re-defined. We use the same `deps` variable in many places, and we end up depending on the inclusion order when we get to the client library, which depends on the gsettings backend defining the `deps` variable. Reviewed-by: nobody Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* build: Add trailing commas where necessaryIñigo Martínez2018-08-111-4/+4
| | | | | | Having trailing commas in place means that if another source file or parameter is added to the end of the list or function, there won't be noise when adding the comma to the line above.
* build: Do not make heavy use of project_nameIñigo Martínez2018-08-111-1/+1
| | | | | | | | | The current meson build files make heavy use of meson's `project_name` function. However this makes difficult for any developer to find for given program/library/file names. The project name is also never going to change. Due to this reason these calls have been changed for `dconf` itself.
* build: Use completions dir from pkg-config fileIñigo Martínez2018-08-111-4/+6
| | | | | | | | | | | | The `bash-completions` pkg-config file provides a variable with the location of the completion files. This variable is checked to set the installation directory of the completion file provided by dconf. As a side note, the variable in the `bash-completions` pkg-config file is not totally correct, because it provides a directory that is relative to prefix while it should be relative to datadir.
* build: Remove duplicated warning parameterIñigo Martínez2018-08-111-1/+0
| | | | | | | The `dconf` binary uses the `-w` compiler argument which is already added by meson by default. This duplicated parameter has been removed.
* build: Remove unnecessary variablesIñigo Martínez2018-08-111-2/+1
| | | | | | | | | There are some defined variables that are not used. Some of these variables are also used as install directories, that are equal to default installation directories. These all unnecessary variables and default installation directories have been removed.
* build: Fix internal dependenciesIñigo Martínez2018-08-111-0/+1
| | | | | | | | | meson is able to generate internal dependencies for handling built libraries. These internal dependencies depend on other dependencies as well, based on the includes exposed by their headers. This have been fixed by using proper internal dependencies for these libraries.
* bin: Stop copying a delegatePhilip Withnall2018-08-101-1/+1
| | | | | | | | | This fixes a build warning: ../bin/dconf.vala:310.15-310.18: warning: copying delegates is not supported ../bin/dconf.vala:305.2-305.13: warning: copying delegates is not supported Signed-off-by: Philip Withnall <withnall@endlessm.com>
* dconf: fix command line completion for "dconf update"Andrea Stacchiotti2018-08-081-2/+2
| | | | | | | Due to a typo, there was no "update" completion option, but a " update" one, which required the user to type "\ " to get a completion, instead of "u". https://bugzilla.gnome.org/show_bug.cgi?id=758126
* dconf-update.vala: correct error message grammarKenyon Ralph2018-07-261-1/+1
|
* Remove .gitignore filesIñigo Martínez2017-10-221-3/+0
| | | | | | | | | | meson does not allow to build source code inside the source code tree, for this reason there is no need for .gitignore files to ignore built files. This patch removes .gitignore files which are no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* build: Remove autotoolsIñigo Martínez2017-10-171-26/+0
| | | | | | | To avoid the burden of maintaining multiple build systems, this patch removes autotools support. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* build: Port to meson build systemIñigo Martínez2017-10-172-1/+27
| | | | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* client: replace _read_default() with _read_full()Allison Ryan Lortie2015-12-161-9/+3
| | | | | | | | | This API has never appeared in a released version of dconf (even unstable). Replace it with a more generally-useful form. Update the test cases, dconf commandline tool and vapi accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=759128
* dconf(1): add -d option to 'dconf read'Allison Ryan Lortie2015-11-301-4/+18
| | | | | | Add a -d option to 'dconf read' to read the default value. https://bugzilla.gnome.org/show_bug.cgi?id=758864
* dconf(1) tool: add list-locks commandAllison Ryan Lortie2015-11-301-12/+29
| | | | | | | Add a list-locks command to the dconf commandline tool to list the locks that are present in the current configuration. https://bugzilla.gnome.org/show_bug.cgi?id=758864
* dconf(1): fix whitespace in synopsisAndreas Schwab2015-03-021-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=744982
* dconf compile: always write little endianRyan Lortie2014-02-051-1/+4
|
* Updated FSF's addressDaniel Mustieles2014-01-312-6/+2
|
* dconf(1): add 'dconf compile' commandRyan Lortie2014-01-132-0/+29
| | | | | | | | This allows manually compiling dconf databases outside of /etc. This is meant to be used from the build system of projects that want to install dconf databases (like gdm) to easily build the database in-tree. https://bugzilla.gnome.org/show_bug.cgi?id=672303
* dconf(1): some whitespace changesRyan Lortie2014-01-131-16/+16
| | | | | | | Add some more padding to 'dconf help' output to accomodate coming additions. https://bugzilla.gnome.org/show_bug.cgi?id=672303
* dconf update: change error handlingRyan Lortie2014-01-131-52/+44
| | | | | | | | Instead of just ignoring errors when trying to parse keyfiles in a .d directory, fail the compile outright. 'dconf update' will print the error and attempt to move on to the next .d directory in line. https://bugzilla.gnome.org/show_bug.cgi?id=672303
* don't use INCLUDESRyan Lortie2013-07-121-1/+1
| | | | | automake seems to prefer AM_CPPFLAGS these days (and warns about use of INCLUDES as being an "old name").
* service: rewriteRyan Lortie2012-10-231-1/+1
| | | | | | | | | | | | | | | | Rewrite the dconf-service using gdbus-codegen and generally cleaning things up a lot. The DConfWriter class can now be reasonably subclassed to create more complex types of dconf databases (such as ones that are stored in the local runtime dir and synced up with an NFS home directory). Keep a cache of the keys in the database (instead of re-reading it every time we try to make a change). Drop support for the old D-Bus interface (now that we are two stable releases since it was used). Modify the commandline tool for 'dconf blame' to call the new interface.
* Install dconf CLI bash completion in /usr/shareRyan Lortie2012-07-152-2/+2
| | | | | | | | | | | Some short while ago the maintainers of bash-completion came to the pretty reasonable conclusion that completion files are not configuration data and therefore should be stored in /usr/share rather than /etc. The /etc path was kept for backwards compatibility, but we should really get with the new system. https://bugzilla.gnome.org/show_bug.cgi?id=678536
* Fixup srcdir != builddir fallout from last commitRyan Lortie2012-07-151-1/+1
|
* Fix up the "changed" signal for ValaRyan Lortie2012-07-101-13/+8
| | | | | | | | | | Fix the vapi file to properly describe the changed signal (including the possibility of NULL tag). Change the dconf tool's implementation of the signal handler (and simplify it due to the changed semantics of the signal). Do the same for the editor.
* Update the editor and cli to use the new sonameRyan Lortie2012-07-101-1/+1
| | | | And fit the .gitignore over the same issue, as well.
* clean up C compiler warningsRyan Lortie2012-07-081-1/+3
| | | | | | | Disable C compiler warnings entirely while building Vala code. Fix-up a couple of legitimate issues plus one false-positive (in service.c).
* massive Makefile reorganisationRyan Lortie2012-07-082-6/+15
| | | | | | | | | | Clean up the Makefiles and make them as similar as possible. Move CFLAGS to a common point of definition and stop using -I so much. Replace the 'dbus stub' with libdconf-mock.a in tests/. Fill in some stubs for future mock code for shm and gvdb (just to get things compiling for now).
* add gtester supportRyan Lortie2012-07-061-0/+2
|
* Massively reorganise the client-sideRyan Lortie2012-07-023-37/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit represents a rather complete rethinking of DConfEngine. - the different kinds of sources are now properly abstracted. This will make landing NFS support substantially easier. - there is now substantially more internal documentation - DConfEngineMessage is gone and replaced with ordinary function calls to be implemented by the D-Bus glue code - the GDBus glue has been factored out and is now shared between the client library and GSettings - the "outstanding" queue logic from the GSettings backend is now in the engine - all changes now go through a single API that accepts a (new) DConfChangeset object. Currently this only supports the current operations (ie: setting and resetting). In the future this object will also support the directory operations required by GSettingsList and will be the basis for the new approach to implementing the 'delayed' GSettingsBackend (which will be the method by which those two concepts can co-exist). The (internal) API of the engine changed substantially. This caused the following: - the libdconf client library has been rewritten in C. Most of the complicated aspects of it (that made it more convenience to use Vala) are now gone. - during the rewrite of libdconf, the DConfClient API changed a bit to look more like a proper GObject. It now makes GIO-style use of thread-default main contexts and uses GObject signals for notifications (instead of hand-rolled callbacks). - the GSettings backend has been substantially simplified (the "outstanding" logic is gone). No externally-visible changes. - the dbus-1 backend has taken a copy of the old engine code for now until it can be ported to the new engine and sufficiently tested. No externally-visible changes. - the dconf commandline tool and dconf-editor required minor changes to adjust to the DConfClient API changes There is a substantial amount of cleaning up and finishing of work to be done. There are many stubs remaining. There are likely still a large number of bugs.
* dconf cli: call setlocale() on startupRyan Lortie2012-04-101-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673834
* dconf update: ignore dotfilesRyan Lortie2012-03-191-0/+4
| | | | This prevents trying to read editor swap files as if they were keyfiles.