Create a home directory for the 'geoclue' user
Without a writable home directory, dconf (giognomeproxy uses gsettings to load proxy information) complains loudly, spamming system logs: dbus-daemon[708]: (geoclue:1334): dconf-CRITICAL **: unable to create directory '/.cache/dconf': Permission denied. dconf will not work properly.
This commit is contained in:
parent
2b2a493606
commit
9d7f8fbd22
@ -53,11 +53,14 @@ make %{?_smp_mflags} V=1
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# Home directory for the 'geoclue' user
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
|
||||
|
||||
|
||||
%pre
|
||||
getent group geoclue >/dev/null || groupadd -r geoclue
|
||||
getent passwd geoclue >/dev/null || \
|
||||
useradd -r -g geoclue -d / -s /sbin/nologin \
|
||||
useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
|
||||
-c "User for geoclue" geoclue
|
||||
exit 0
|
||||
|
||||
@ -68,6 +71,7 @@ exit 0
|
||||
%{_libexecdir}/geoclue
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
|
||||
%{_datadir}/geoclue-2.0/
|
||||
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/geoclue-2.0.pc
|
||||
@ -81,6 +85,7 @@ exit 0
|
||||
%changelog
|
||||
* Sun Oct 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.0.0-1
|
||||
- Update to 2.0.0
|
||||
- Create a home directory for the 'geoclue' user
|
||||
|
||||
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
|
||||
- Run the service as 'geoclue' user
|
||||
|
Loading…
Reference in New Issue
Block a user