THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#332 - op_lidsettings.sh and op_power.sh scripts fail for some usernames User who did this - russ (russ)
---------- <p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">"finding the user's home directory" really ought to be factored out to somewhere generic (/usr/pandora/scripts/op_paths.sh perhaps, assuming there's some reason this all doesn't just use $HOME), but if this OS release series is moribund I'll just fix what's broken rather than cleaning up the ugliness. patch inline below.</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">diff -ur /tmp/ubifs_root/usr/pandora/scripts/op_lidsettings.sh /usr/pandora/scripts/op_lidsettings.sh</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">--- /tmp/ubifs_root/usr/pandora/scripts/op_lidsettings.sh 2013-12-18 23:05:23.000000000 +1100</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+++ /usr/pandora/scripts/op_lidsettings.sh 2014-03-03 17:13:09.100952719 +1100</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">@@ -1,6 +1,6 @@</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> #!/bin/bash</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> # change what to do when the lid is closed/opened</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">-case "$(cat $(grep /etc/passwd -e $(ps u -C xfce4-session | tail -n1 | awk '{print $1}')| cut -f 6 -d ":")/.lidconfig)" in</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+case "$(cat $(grep /etc/passwd -e ^$(ps u -C xfce4-session | tail -n1 | awk '{print $1}'): | cut -f 6 -d ":")/.lidconfig)" in</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> "lowpower")</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> current="the Pandora goes into low power mode"</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> ;;</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">@@ -14,4 +14,4 @@</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro'; min-height: 15px;"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> sel=$(zenity --title="Lid settings" --height=250 --list --column "id" --column "Please select" --hide-column=1 --text="What should happen when you close the Pandora's lid?\n(the opposite of the selected action is performed when opening the lid again)\nAt the moment $current when you close the lid." "brightness" "Turn off the screen." "lowpower" "Go into low power mode (same as when pressing the</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> power button for less than 3 seconds)" "shutdown" "Shut the pandora down.") || exit</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">-echo "$sel" > $(grep /etc/passwd -e $(ps u -C xfce4-session | tail -n1 | awk '{print $1}')| cut -f 6 -d ":")/.lidconfig</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+echo "$sel" > $(grep /etc/passwd -e ^$(ps u -C xfce4-session | tail -n1 | awk '{print $1}'): | cut -f 6 -d ":")/.lidconfig</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">diff -ur /tmp/ubifs_root/usr/pandora/scripts/op_power.sh /usr/pandora/scripts/op_power.sh</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">--- /tmp/ubifs_root/usr/pandora/scripts/op_power.sh 2013-12-18 23:05:23.000000000 +1100</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+++ /usr/pandora/scripts/op_power.sh 2014-03-17 12:02:15.230625296 +1100</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">@@ -12,9 +12,9 @@</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> return 1 # 0 when debugging, 1 when not</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> }</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro'; min-height: 15px;"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">-test -e $(grep /etc/passwd -e $(ps u -C xfce4-session | tail -n1 | awk '{print $1}')| cut -f 6 -d ":")/.lidconfig && lidconfig=$(cat $(grep /etc/passwd -e $(ps u -C xfce4-session | tail -n1 | awk '{print $1}')| cut -f 6 -d ":")/.lidconfig) # read lid conf. file if it exists</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+test -e $(grep /etc/passwd -e ^$(ps u -C xfce4-session | tail -n1 | awk '{print $1}'): | cut -f 6 -d ":")/.lidconfig && lidconfig=$(cat $(grep /etc/passwd -e ^$(ps u -C xfce4-session | tail -n1 | awk '{print $1}'): | cut -f 6 -d ":")/.lidconfig) # read lid conf. file if it exists</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro'; min-height: 15px;"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">-#powerbuttonconfig=$(cat $(grep /etc/passwd -e $(ps u -C xfce4-session | tail -n1 | awk '{print $1}')| cut -f 6 -d ":")/.powerbuttonconfig)</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';">+#powerbuttonconfig=$(cat $(grep /etc/passwd -e ^$(ps u -C xfce4-session | tail -n1 | awk '{print $1}'): | cut -f 6 -d ":")/.powerbuttonconfig)</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro'; min-height: 15px;"> </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> if [ -e /tmp/powerstate ]; then </p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Source Code Pro';"> powerstate="$(cat /tmp/powerstate)"</p>
----------
More information can be found at the following URL: http://bugs.openpandora.org/index.php?do=details&task_id=332#comment536
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.