1

I'm looking for a GUI application which works as nicely as Ubuntu's system settings, except that it lets me remove some of the items in it without the whole thing crashing.

In the current GUI, removing one of the modules (for devices like bluetooth, printers) has -in the past- made the whole system settings (GUI) application disappear.

I want to make it more difficult for anyone to use such devices (printer, bluetooth) through my computer (until -if ever- I decide otherwise).

aksub
  • 53

1 Answers1

0
  • unity-control-center relys on .desktop files and their commands existence to show UI modules.

    1. That's what I got from tracing it.

      strace -o Desktop/trace_control_center.txt unity-control-center
      
    2. Click on printer then close it

    3. Check for operations: stat,if successful followed by open, itself if successful followed by read

      grep -i printer Desktop/trace_control_center.txt
      
  • So, Just remove their .desktop file or change its permission:

    sudo chmod -r /usr/share/applications/unity-bluetooth-panel.desktop
    sudo chmod -r /usr/share/applications/system-config-printer.desktop
    

    BTW, unity-control-center is forked from gnome-control-center, same as unity-settings-daemon from gnome-settings-daemon. You may have both on same system:

    sudo chmod -r /usr/share/applications/gnome-bluetooth-panel.desktop
    

    Printer configuration wizard is common.

  • Or you may instead change commands permission, if you want to disable both GUI/CLI:

    sudo chmod -x /usr/bin/system-config-printer
    
user.dz
  • 49,176