--- /dev/null
+ [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
<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>
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
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)
{
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