Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Deepin
deepin-feature-enable
deepin-feature-enable.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File deepin-feature-enable.in of Package deepin-feature-enable
#!/bin/bash # Name: Deepin Features installer # Version: 1.1 # Description: Enable dbus and policykit for Deepin Desktop on openSUSE # Author: Hillwood Yang <hillwood@opensuse.org> # License: WTFPL-2.0 SYSTEM_TMP=/root/.cache ################################################################################ # deepin-daemon-dbus TMP_DIR=$SYSTEM_TMP/deepin-daemon-dbus pushd /usr/share/dbus-1/system.d/ &>/dev/null Filelist1=&(ls com.deepin.daemon*) &>/dev/null if [ "$Filelist1" != "" ]; then rm -rf "$Filelist1" fi popd &>/dev/null pushd /usr/share/dbus-1/system-services/ &>/dev/null Filelist2=&(ls com.deepin.daemon*) &>/dev/null if [ "$Filelist2" != "" ]; then rm -rf "$Filelist2" fi popd &>/dev/null mkdir -p $TMP_DIR pushd $TMP_DIR &>/dev/null tar -xvf /usr/share/dde-daemon/dbus.tar.gz &>/dev/null cp dbus/system.d/* /usr/share/dbus-1/system.d/ cp dbus/system-services/* /usr/share/dbus-1/system-services/ chmod 0644 /usr/share/dbus-1/system.d/com.deepin.daemon* chmod 0644 /usr/share/dbus-1/system-services/com.deepin.daemon* popd &>/dev/null rm -rf $TMP_DIR echo "Deepin DBus profiles install succeed!" ################################################################################ # deepin-daemon-polkit TMP_DIR=$SYSTEM_TMP/deepin-daemon-polkit pushd /usr/share/polkit-1/actions/ &>/dev/null Filelist=&(ls com.deepin.daemon*) &>/dev/null if [ "$Filelist" != "" ]; then rm -rf "$Filelist" fi popd &>/dev/null mkdir -p $TMP_DIR pushd $TMP_DIR &>/dev/null tar -xvf /usr/share/dde-daemon/polkit.tar.gz &>/dev/null cp polkit/* /usr/share/polkit-1/actions/ chmod 0644 /usr/share/polkit-1/actions/com.deepin.daemon* popd &>/dev/null rm -rf $TMP_DIR echo "Deepin polkit profiles install succeed!"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor