Add Clipboard service accepted/tizen_2.1/20130520.093118 submit/tizen_2.1/20130516.045807
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Wed, 15 May 2013 09:55:35 +0000 (18:55 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Wed, 15 May 2013 09:55:48 +0000 (18:55 +0900)
Change-Id: I8191dc66edb42a8ca5e49f0c116fc29adaaf5fd0
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
clipboard.service [new file with mode: 0644]
osp-uifw.manifest
packaging/osp-uifw.spec
src/CMakeLists.txt
src/ui/FUi_Clipboard.cpp

diff --git a/clipboard.service b/clipboard.service
new file mode 100644 (file)
index 0000000..b6abcc1
--- /dev/null
@@ -0,0 +1,13 @@
+  [Unit]
+Description=create folder
+After=
+Before=
+[Service]
+Type=OneShot
+ExecStartPre=/bin/mkdir /tmp/clipboard
+ExecStartPre=/bin/chmod 777 /tmp/clipboard
+ExecStartPre=/usr/bin/chsmack -a 'system::clipboard' /tmp/clipboard
+ExecStart=/usr/bin/chsmack -t /tmp/clipboard
+
+[Install]
+WantedBy=multi-user.target
index ae3e6f7..b8caeaf 100644 (file)
@@ -2,4 +2,8 @@
        <request>
                <domain name="_"/>
        </request>
-</manifest>
\ No newline at end of file
+       <assign>
+               <filesystem path="/usr/lib/systemd/system/clipboard.service" label="_" exec_label="none" />
+               <filesystem path="/usr/lib/systemd/system/multi-user.target.wants/clipboard.service" label="_" exec_label="none" />
+       </assign>
+</manifest>
index 845f46e..604761d 100644 (file)
@@ -117,12 +117,16 @@ cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2  %{buildroot}/usr/share/license
 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora  %{buildroot}/usr/share/license/%{name}
 
 %make_install
-
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/multi-user.target.wants
+install -m 0644 clipboard.service %{buildroot}%{_prefix}/lib/systemd/system/clipboard.service
+ln -s ../clipboard.service %{buildroot}%{_prefix}/lib/systemd/system/multi-user.target.wants/clipboard.service
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
+/usr/lib/systemd/system/clipboard.service
+/usr/lib/systemd/system/multi-user.target.wants/clipboard.service
 %manifest osp-uifw.manifest
 /etc/config/screen/sysinfo-screen.xml
 /etc/config/touch/sysinfo-touch.xml
index c2c4136..e8b33cb 100644 (file)
@@ -43,4 +43,4 @@ ADD_SUBDIRECTORY(uifw)
 
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/sysinfo-screen.xml DESTINATION /etc/config/screen)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/sysinfo-touch.xml DESTINATION /etc/config/touch)
-
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/clipboard.service DESTINATION /usr/lib/systemd/system/ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
index 7a9a27f..ce76c48 100644 (file)
@@ -54,7 +54,7 @@ namespace
 {
 const int _CLIPBOARD_ITEM_MAX = 12;
 const int _CBHM_ITEM_MAX = 12;
-const String _CLIPBOARD_DEFAULT_PATH = L"/tmp/clipboard_";
+const String _CLIPBOARD_DEFAULT_PATH = L"/tmp/clipboard/clipboard_";
 const String _CLIPBOARD_DEFAULT_EXTENSION = L".png";
 } // Anonymous