http://bugzilla.novell.com/show_bug.cgi?id=513808 Summary: dbus-send command works from terminal, not within a hook Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mehl@freunde.tu-darmstadt.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.11) Gecko/2009060200 SUSE/3.0.11-0.1.1 Firefox/3.0.11 When closing a computer session by suspend-to-disk I might be working in different desktops, sometimes I end the session from desktop 2, sometimes from no.4 etc. After the awakening the new session should always start within desktop 2 regardless of the one I had suspended the computer from. To this end with opensuse 11.0 I had the following hook: -------------------------------------------------- #!/bin/bash case $1 in thaw) /opt/kde3/bin/dcop --all-users --all-sessions kwin KWinInterface setCurrentDesktop 2 ;; esac ------------------------------------- This has worked perfectly. With opensuse 11.1 this doesn't function any more. I was given the advice to replace dcop by dbus-send because dcop would not work correctly with kde 4 - I work with kde 4.1.3. So a new hook with the following line was installed: --------------------------------------- dbus-send --type=method_call --dest=org.kde.kwin /KWin org.kde.KWin.setCurrentDesktop int32:2 ------------------------------- This line works from the terminal, i.e. when started from a terminal on desktop4 the desktop2 is correctly switched to. But ... when this line is used in a hook like the one above nothing visible to me happens. Reproducible: Always Steps to Reproduce: 1. suspend the computer to disk 2. awake it by turning on the power 3. Actual Results: The computer starts from the last desktop before the suspend-to-disk, not from desktop no. 2 as desired Expected Results: The computer should start from desktop no. 2 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.