change path of .service file 68/74968/1 accepted/tizen/common/20160617.121151 accepted/tizen/ivi/20160617.082749 accepted/tizen/mobile/20160617.082534 accepted/tizen/tv/20160617.082520 accepted/tizen/wearable/20160617.082600 submit/tizen/20160616.073907
authorHyihong Chae <hh.chae@samsung.com>
Thu, 16 Jun 2016 07:30:30 +0000 (16:30 +0900)
committerHyihong Chae <hh.chae@samsung.com>
Thu, 16 Jun 2016 07:30:30 +0000 (16:30 +0900)
Change-Id: I010ed39495bef5fde05743f8b601fbb3c8791140
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
mtp-responder.service
packaging/mtp-responder.spec
src/util/mtp_util.c

index 9fcc7fee071608b3e4919359eb2b4b02edfc3ba1..2f2773e43456bfea43367d2cfd7c1841c0ae6b6b 100755 (executable)
@@ -2,8 +2,6 @@
 Description=MTP responder
 
 [Service]
-User=owner
-Group=users
 Type=simple
 ExecStart=/usr/bin/mtp-responder
-KillMode=process
+KillMode=process
\ No newline at end of file
index 366cf698d9d5c282cf33c43b723bab780361dffa..6136f0711ab21b8fed824b32ce3564e4e1c55f0c 100755 (executable)
@@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64
 
 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
@@ -45,7 +45,7 @@ make %{?jobs:-j%jobs}
 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
@@ -53,13 +53,13 @@ install -D -m 0644 mtp-responder.service %{buildroot}%{_libdir}/systemd/system/m
 /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
index afea4f884e93b29369c9b518f39faec7f819076d..ef614c6d43c36a3f58c7aeff0854ea81247fd6e9 100755 (executable)
@@ -297,7 +297,7 @@ static bool _util_device_supported_cb(int storage_id, storage_type_e type,
        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);