From: keonpyo.kong Date: Wed, 15 May 2013 09:55:35 +0000 (+0900) Subject: Add Clipboard service X-Git-Tag: accepted/tizen_2.1/20130520.093118^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=735877edcb8bcf43d106886bbd5168d28bec79b3;p=framework%2Fosp%2Fuifw.git Add Clipboard service Change-Id: I8191dc66edb42a8ca5e49f0c116fc29adaaf5fd0 Signed-off-by: keonpyo.kong --- diff --git a/clipboard.service b/clipboard.service new file mode 100644 index 0000000..b6abcc1 --- /dev/null +++ b/clipboard.service @@ -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 diff --git a/osp-uifw.manifest b/osp-uifw.manifest index ae3e6f7..b8caeaf 100644 --- a/osp-uifw.manifest +++ b/osp-uifw.manifest @@ -2,4 +2,8 @@ - \ No newline at end of file + + + + + diff --git a/packaging/osp-uifw.spec b/packaging/osp-uifw.spec index 845f46e..604761d 100644 --- a/packaging/osp-uifw.spec +++ b/packaging/osp-uifw.spec @@ -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 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c2c4136..e8b33cb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) diff --git a/src/ui/FUi_Clipboard.cpp b/src/ui/FUi_Clipboard.cpp index 7a9a27f..ce76c48 100644 --- a/src/ui/FUi_Clipboard.cpp +++ b/src/ui/FUi_Clipboard.cpp @@ -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