[Tails-dev] Lock the location services switch

Üzenet törlése

Válasz az üzenetre
Szerző: Astral Projection
Dátum:  
Címzett: tails-dev
Tárgy: [Tails-dev] Lock the location services switch
So a friend of mine was confused about a setting in tails. They were
trying tails for the first time and were going through the settings and
saw location services can be turned on and got worried.

I assured them that it doesn’t matter because that feature requires
geoclue to work which is not included in tails.

Locking the switch to prevent this setting from being able to be turned
on (even though it requires geoclue to work) would be a good idea to
implement and easy to implement.

I tested this and it did work in both tails and on normal Gnome desktop.

Source:
https://help.gnome.org/admin/system-admin-guide/stable/dconf-lockdown.html.en
https://help.gnome.org/admin/system-admin-guide/stable/desktop-background.html.en

Requires setting value in local.d file to correspond to locks keyfile


Add this line to:

/etc/dconf/db/local.d/00_Tails_defaults

[org/gnome/system/location]
enabled = false

Then create this directory

/etc/dconf/db/local.d/locks

Create file named something like 00_location-services-disable-switch in
that directory

add this line to that file:

/org/gnome/system/location/enabled

Now go to Settings -> Privacy -> Location Services and you can see that
switch is locked and setting can't be turned on in the slider