Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
cairo-dock-plugins-extra
HDDtemperature.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File HDDtemperature.patch of Package cairo-dock-plugins-extra
From: Adam Mizerski <adam@mizerski.pl> Date: 2014-02-14 23:07:26 +0100 Upstream: no Subject: make HDDtemperature plugin store its data in users cache dir. When the plugin is installed system-wide, user cannot modify anything in its directory. This patch makes sure that files are created in ~/.cache directory. diff -rupN cairo-dock-plug-ins-extras_3.3.2/HDDtemperature/HDDtemperature.sh cairo-dock-plug-ins-extras_3.3.2_mod/HDDtemperature/HDDtemperature.sh --- cairo-dock-plug-ins-extras_3.3.2/HDDtemperature/HDDtemperature.sh 2013-10-30 13:10:59.000000000 +0100 +++ cairo-dock-plug-ins-extras_3.3.2_mod/HDDtemperature/HDDtemperature.sh 2014-02-14 23:06:05.277148249 +0100 @@ -49,7 +49,7 @@ fi DURATION=`get_conf_param "para_dur"` -FULL_INFO=`cat store | tr '\n' "\r "` +FULL_INFO=`cat ~/.cache/cairo-dock-HDDtemperature-store | tr '\n' "\r "` call ShowDialog "string:'$FULL_INFO'" "int32:$DURATION" } @@ -102,9 +102,9 @@ SEPARATOR=${SEPARATOR:0:1} call Animate "string:fire" "int32:0" fi - cp /dev/null store + cp /dev/null ~/.cache/cairo-dock-HDDtemperature-store for i in "${Array[@]:0:$len_Array}"; do # to last-but-one (before temperature) - echo "$i" >> store + echo "$i" >> ~/.cache/cairo-dock-HDDtemperature-store done echo "dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.ReloadModule string:HDDtemperature" \ @@ -115,7 +115,7 @@ SEPARATOR=${SEPARATOR:0:1} end() { -rm -f store +rm -f ~/.cache/cairo-dock-HDDtemperature-store } #############################################################################################################
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