Waydroid: Difference between revisions

Jfly (talk | contribs)
Onny (talk | contribs)
Add section for GPS/location sharing
Line 97: Line 97:
Removing images and user data
Removing images and user data
$ sudo rm -r /var/lib/waydroid/* ~/.local/share/waydroid
$ sudo rm -r /var/lib/waydroid/* ~/.local/share/waydroid
</syntaxhighlight>
== Tips and tricks ==
=== GPS/Location forwarding ===
First enable ''geoclue2'' daemon on the host<syntaxhighlight lang="nix">
services.geoclue2.enable = true;
</syntaxhighlight>Enable location provider in your desktop environment. For Gnome Shell you can do this<syntaxhighlight lang="bash">
gsettings set org.gnome.system.location enabled true
</syntaxhighlight>To test and see location<syntaxhighlight lang="bash">
nix shell nixpkgs#geoclue2 -c $(nix eval --raw nixpkgs#geoclue2)/libexec/geoclue-2.0/demos/where-am-i
</syntaxhighlight>
</syntaxhighlight>