Friday, May 3, 2024
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 4520  / 1 Year ago, tue, march 14, 2023, 1:24:58

I would like to remove or disable some unused settings panels in system settings/gnome-control-center to keep my more "ambitious" users from messing with them.

Specifically, I would like to disable/remove the following:




  • Printers (because we don't have any attached to these machines)

  • Details (because it lets you set actions on removable media)

  • Keyboard (because it lets you set shortcut keys - not a dealbreaker)



This seems like it should be pretty straightforward (I can remove them from the Applications menu by setting Hidden=true in the .desktop file associated with the panel), but they stubbornly remain in System Settings when I do that.



Am I missing something, or are we stuck with these panels in the Settings application forever?


More From » system-settings

 Answers
5

Given that changing the permissions accomplishes your goal, check out this magic:



dpkg-statoverride --update --add root root 640 /usr/share/applications/gnome-printers-panel.desktop
dpkg-statoverride --update --add root root 640 /usr/share/applications/gnome-info-panel.desktop
dpkg-statoverride --update --add root root 640 /usr/share/applications/gnome-keyboard-panel.desktop


You can remove the overrides with:



dpkg-statoverride --remove /path/to/file


(but note this won't reset the original permissions)


[#26232] Tuesday, March 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mentpengu

Total Points: 148
Total Questions: 114
Total Answers: 119

Location: Anguilla
Member since Sun, Aug 7, 2022
2 Years ago
;