How can I stop Waydroid?

I’m unable to stop it.

BASHY $ time sudo systemctl stop waydroid-container
Job for waydroid-container.service canceled.

real	0m0,443s
user	0m0,011s
sys	0m0,019s
quasar in ~
BASHY $ ppgrep waydroi
    PID TTY      STAT   TIME COMMAND
3353123 ?        Ssl    0:00 /nix/store/4rf5qybw37b4lh1g0xczlv14sqdbmnpm-python3-3.11.9/bin/python3.11 /nix/store/47jx6lzrmrkm5vpjhv8j5wgw8jvrl1hi-waydroid-1.4.2/lib/waydroid/.waydroid.py-wrapped -w container start
quasar in ~
BASHY $ time sudo systemctl stop waydroid-container
Job for waydroid-container.service canceled.

real	0m0,578s
user	0m0,018s
sys	0m0,019s
quasar in ~
BASHY $ ppgrep waydroi
    PID TTY      STAT   TIME COMMAND
3353781 ?        Ss     0:00 /nix/store/4rf5qybw37b4lh1g0xczlv14sqdbmnpm-python3-3.11.9/bin/python3.11 /nix/store/47jx6lzrmrkm5vpjhv8j5wgw8jvrl1hi-waydroid-1.4.2/lib/waydroid/.waydroid.py-wrapped session stop
quasar in ~

I have been able to stop it, if I keep going, but I’m not able to start it again, so I think some parts of it is still running.

Can I make sure none of it is running?

Also, I’m trying to make a bug report in github, but it asks for

/var/lib/waydroid/waydroid.cfg
/var/lib/waydroid/waydroid.prop
/var/lib/waydroid/waydroid_base.prop
/var/lib/waydroid/waydroid.log

Where are these in NixOS?:wink:

waydroid should have a desktop file named Shutdown Waydroid. The lxc container probably keeps running as you otherwise cannot start it anymore?

If they are generated by waydroid they should be in the same location. If they come shipped with the package they are in the nix store next to the waydroid binary.
The log could also be inside journalctl.

That is supposed to be in /run/current-system/sw/share/applications?

quasar in ~
BASHY $ ls -l /run/current-system/sw/share/applications/*roid*
lrwxrwxrwx 1 root root 106 jan.   1  1970 /run/current-system/sw/share/applications/waydroid.app.install.desktop -> /nix/store/47jx6lzrmrkm5vpjhv8j5wgw8jvrl1hi-waydroid-1.4.2/share/applications/waydroid.app.install.desktop
lrwxrwxrwx 1 root root  94 jan.   1  1970 /run/current-system/sw/share/applications/Waydroid.desktop -> /nix/store/47jx6lzrmrkm5vpjhv8j5wgw8jvrl1hi-waydroid-1.4.2/share/applications/Waydroid.desktop
lrwxrwxrwx 1 root root 101 jan.   1  1970 /run/current-system/sw/share/applications/waydroid.market.desktop -> /nix/store/47jx6lzrmrkm5vpjhv8j5wgw8jvrl1hi-waydroid-1.4.2/share/applications/waydroid.market.desktop

Yeah I’ve never seen a Shutdown Waydroid desktop file.

@famadorian did you try sudo waydroid session stop?

EDIT: after testing on my machine I’m actually able to stop the waydroid-container service, and running waydroid via desktop file starts up the service again. Maybe I’m missing something here.

I was able to stop it before, but I think maybe something has crashed somewhere, cause I tried to mount bind some directories in there. I have unmounted them, but it might be related. It probably works again if I reboot, but I don’t really want to do that now;)

It’s just weird that systemctl stop waydroid-container can’t give me any error message why it can’t stop it.