[Xfce-bugs] [Bug 15960] sometimes xfconf-query toggle/toggling boolean values doesn't work

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Sep 15 14:52:04 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15960

howaboutsynergy <howaboutsynergy at pm.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howaboutsynergy at pm.me

--- Comment #1 from howaboutsynergy <howaboutsynergy at pm.me> ---
Note that manually toggling always works, eg.

#!/bin/bash

set -e
while true; do
#xfconf-query -c xfwm4 -p /general/use_compositing; xfconf-query -c xfwm4 -p
/general/use_compositing -T; xfconf-query -c xfwm4 -p /general/use_compositing
before=$(xfconf-query -c xfwm4 -p /general/use_compositing)
#xfconf-query -c xfwm4 -p /general/use_compositing -T
if test "$before" == "true"; then
  wanted="false"
elif test "$before" == "false"; then
  wanted="true"
else
  echo "Fail '$before'"
  exit 1
fi
xfconf-query -c xfwm4 -p /general/use_compositing -s "$wanted"
after=$(xfconf-query -c xfwm4 -p /general/use_compositing)
if test "$before" == "$after"; then
  echo "Failed to set to '$wanted', it's still '$after'"
  exit 1
fi
sleep 0.2
done


this never fails.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list