diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-03-19 11:36:25 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-03-19 11:36:25 -0400 |
commit | ef21f2906e94c331c63e3bee4baa1b9d415ee0ae (patch) | |
tree | 01a7079631b380c6ecc3af32b2d1e00fddc652b0 /bin | |
parent | 1ce11b2802c915b7e4c9c8d7f1d2862982335406 (diff) | |
download | dconf-ef21f2906e94c331c63e3bee4baa1b9d415ee0ae.tar.gz |
dconf update: ignore dotfiles
This prevents trying to read editor swap files as if they were keyfiles.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dconf-update.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala index 1517e78..434b022 100644 --- a/bin/dconf-update.vala +++ b/bin/dconf-update.vala @@ -50,6 +50,10 @@ SList<string>? list_directory (string dirname, Posix.mode_t mode) { unowned string? name; while ((name = dir.read_name ()) != null) { + if (name.has_prefix (".")) { + continue; + } + var filename = Path.build_filename (dirname, name); Posix.Stat buf; |