Xfce shortcut to open appmenu not working with autologin

I’m not sure if it’s really a Qubes OS matter, but following various tips from the Quick Quality-of-Life Improvements thread led me to this problem: I have a Xfce shortcut to open the Qubes appmenu that stopped working after enabling autologin in LightDM.

I have this open-qubes-appmenu.sh script:

eval $(xdotool getmouselocation --shell)

xdotool mousemove 5 5
gdbus call --session --dest org.qubesos.appmenu --object-path "/org/qubesos/appmenu" --method org.freedesktop.Application.Activate "{}"

xdotool mousemove 100 125 mousemove 130 130 mousemove restore 
sleep 0.1
if [ $X -lt 720 ]; then
    X=720
fi
xdotool mousemove $X $Y

And this shortcut:

$ xfconf-query -c xfce4-keyboard-shortcuts -lv | grep "<Super>q"
/commands/custom/<Super>q                        open-qubes-appmenu

This configuration is working, except when I set the line autologin-user=parulin in /etc/lightdm/lightdm.conf. I tried this:

  • Typing the shortcut while a terminal is opened results in a q showing up in the terminal (I suppose that it means that the shortcut doesn’t start anything ?)
  • Changing the shortcut keys doesn’t change anything.
  • My other custom shortcuts using a script are working. They use xdotool but not gdbus.
  • Running the script from a terminal works.
  • After xfsettings --replace, the shortcut works again.

I don’t know where to look for a solution.

Hi, this is a pretty weird behavior indeed.

This makes me think that the shortcut is not recognized. If it was captured by xfce, even if the resulting script behind the shortcut failed, it should not print the shortcut key.

what is this doing exactly?

a temporary workaround could be run to the xfsettings --replace command at startup

I agree

I made a typo, it’s xfsettingsd, it replaces the xsettings current deamon? I was trying to use:

XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon

To get some logs but doing so resolve the problem…a temporary workaround could be run to the xfsettings --replace command at startup

I forgot to mention that I’ve tried this through xfce4-session-settings but, I will try to play with the .desktop file created in ~/.config/autostart.

Changing the line Terminal=false to true in the .desktop file placed in ~/.config/autostart/ opens a terminal, which changes nothing but, closing the terminal results in a working shortcut.