Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Mozilla:Add-ons:Arch
systray-x-gnome
_service:obs_scm:systray-x-gnome.install
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:systray-x-gnome.install of Package systray-x-gnome
post_install() { PROF_DIR="/etc/dconf/profile" PROF_FILE="user" if [ -f ${PROF_DIR}/${PROF_FILE} ] ; then # # Edit user file # grep -q "user-db:user" ${PROF_DIR}/${PROF_FILE} if [ "$?" = "1" ] ; then echo "user-db:user" >> ${PROF_DIR}/${PROF_FILE} fi grep -q "system-db:local" ${PROF_DIR}/${PROF_FILE} if [ "$?" = "1" ] ; then echo "system-db:local" >> ${PROF_DIR}/${PROF_FILE} fi else # # Generate user file # mkdir -p ${PROF_DIR} cat >${PROF_DIR}/${PROF_FILE} <<EOF user-db:user system-db:local EOF fi EXTENSION="appindicatorsupport@rgcjonas.gmail.com" CONF_DIR="/etc/dconf/db/local.d" CONF_FILE="00-extensions" if [ -f ${CONF_DIR}/${CONF_FILE} ] ; then # # Edit extensions file # grep -q ${EXTENSION} ${CONF_DIR}/${CONF_FILE} if [ "$?" == "1" ] ; then sed -i -e "s/\(enabled-extensions=\[.*\)\]/\1, '${EXTENSION}'\]/" ${CONF_DIR}/${CONF_FILE} fi else # # Generate extensions file # mkdir -p ${CONF_DIR} cat >${CONF_DIR}/${CONF_FILE} <<EOF [org/gnome/shell] # List all extensions that you want to have enabled for all users enabled-extensions=['appindicatorsupport@rgcjonas.gmail.com'] EOF fi # if [ -x /usr/bin/dconf ] ; then dconf update fi }
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