Name: mtp-responder
Summary: Media Transfer Protocol daemon (responder)
-Version: 0.0.9
+Version: 0.0.10
Release: 1
Group: Network & Connectivity/Other
License: Apache-2.0
mkdir -p %{buildroot}%{_libdir}/udev/rules.d
cp packaging/99-mtp-responder.rules %{buildroot}%{_libdir}/udev/rules.d/99-mtp-responder.rules
-install -D -m 0644 mtp-responder.service %{buildroot}%{_libdir}/systemd/system/mtp-responder.service
+install -D -m 0644 mtp-responder.service %{buildroot}%{_libdir}/systemd/user/mtp-responder.service
%post
/usr/bin/vconftool set -t string db/private/mtp/serial_number "" -u 5000 -g 5000 -i -f -s tizen::vconf::platform::rw
/usr/bin/vconftool set -t int db/private/mtp/sync_time 0 -u 5000 -g 5000 -i -f -s tizen::vconf::platform::rw
mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
-ln -sf %{_libdir}/systemd/system/mtp-responder.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
+ln -sf %{_libdir}/systemd/user/mtp-responder.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
%files
%manifest mtp-responder.manifest
-%defattr(-,system,system,-)
+%defattr(-,root,root,-)
%{_bindir}/mtp-responder
-%{_libdir}/systemd/system/mtp-responder.service
+%{_libdir}/systemd/user/mtp-responder.service
%{_libdir}/udev/rules.d/99-mtp-responder.rules
/opt/var/lib/misc/mtp-responder.conf
#%license LICENSE.APLv2
storage_state_e state, const char *path, void *user_data)
{
char *ext_path = (char *)user_data;
-
+
if (type == STORAGE_TYPE_EXTERNAL && path != NULL) {
strncpy(ext_path, path, strlen(path));
DBG("external storage path : %s", ext_path);