Skip to content

privacy: Add USB protection entry

Ludovico de Nittis requested to merge denittis/gnome-control-center:usbv5 into master

This is related to the GNOME-Shell MR gnome-shell!369, the gnome-settings-daemon MR gnome-settings-daemon!75 (merged) and the gsettings-desktop-schemas MR gsettings-desktop-schemas!15 (merged).

I talked about this in Planet GNOME. First post here https://ryuzakikk.github.io/gnome/internship-preparation/

This MR adds an entry in the privacy panel of g-c-c. From there the users will be able to check and edit their USB protection level.

We have a general on/off switch and below a drop down menu where is possible to choose when to allow/block new USB devices.

The drop down entries are: "Never", "When lock screen is active" and "Always".

OLD VERSION:

g-c-c-usb-switch

g-c-c-usb-current-state

USBGuard is required for this functionality to work. So we check if it is available and if it is not we gray out the drop down and the on/off switch.

This is the NEW VERSION:

Peek_2019-02-19_10-30

And this is the FINAL VERSION:

Screenshot_from_2020-01-29_16-34-49

Edited by Ludovico de Nittis

Merge request reports