How do I programmatically disable "Connectivity Checking"?

CHolmstedt

I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).

I can turn off Connectivity Checking through Settings -> Privacy but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu? I was able to turn off other privacy settings through gsettings.

Viewing the file list of this package at https://packages.ubuntu.com/bionic/all/network-manager-config-connectivity-ubuntu/filelist indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf) but it does not show any possibility to enable/disable the feature.

Any help is appreciated.

fnx

There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:

[connectivity] 
.set.enabled=false

You can use the tool crudini to set the flag using the command line or a script:

sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"

For some reason the ui doesn't get updated until a reboot (didn't test logoff/login). Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.

btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):

sudo find /var -newermt "-1 minute" -ls

There aren't any changes to gsettings. I monitored the settings using this command:

dconf watch /

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I programmatically disable "Connectivity Checking"?

From Dev

How do I programmatically disable Hazelcast client's logging?

From Dev

How do I programmatically disable Hazelcast client's logging?

From Dev

How do I programmatically disable the KDE screen locker?

From Dev

How can I disable Tablet Mode programmatically?

From Dev

How do I programmatically disable Wi-fi Sense in Windows 10?

From Dev

How do I programmatically disable Wi-fi Sense in Windows 10?

From Dev

How do I disable Cython?

From Dev

How do I disable Bootchart?

From Dev

How do I disable swap?

From Dev

How do i disable a Jlabel?

From Dev

How to disable SparkUI programmatically?

From Dev

How to disable a constraint programmatically?

From Dev

How can I enable/disable section headers in UICollectionView programmatically?

From Dev

How can I enable/disable Dash online results programmatically?

From Dev

How can I enable/disable Dash online results programmatically?

From Dev

How do I programmatically stop all synths?

From Dev

How do I programmatically start an OAuth session?

From Java

How do I close a SearchView programmatically?

From Java

How do I show a SwiftUI overlay programmatically?

From Dev

How do I create a dijit TextBox programmatically?

From Java

How do I create a basic UIButton programmatically?

From Java

How do I exit a WPF application programmatically?

From Dev

How do I invoke a DiagnosticCommandMBean programmatically?

From Dev

How do i lock phone programmatically android

From Dev

How do I create constraints programmatically in Swift?

From Dev

How do I center images in UITableViewCells programmatically?

From Dev

How do I programmatically query CKEDITOR contents?

From Dev

How do I programmatically trigger "hoverintent" on an element

Related Related

  1. 1

    How do I programmatically disable "Connectivity Checking"?

  2. 2

    How do I programmatically disable Hazelcast client's logging?

  3. 3

    How do I programmatically disable Hazelcast client's logging?

  4. 4

    How do I programmatically disable the KDE screen locker?

  5. 5

    How can I disable Tablet Mode programmatically?

  6. 6

    How do I programmatically disable Wi-fi Sense in Windows 10?

  7. 7

    How do I programmatically disable Wi-fi Sense in Windows 10?

  8. 8

    How do I disable Cython?

  9. 9

    How do I disable Bootchart?

  10. 10

    How do I disable swap?

  11. 11

    How do i disable a Jlabel?

  12. 12

    How to disable SparkUI programmatically?

  13. 13

    How to disable a constraint programmatically?

  14. 14

    How can I enable/disable section headers in UICollectionView programmatically?

  15. 15

    How can I enable/disable Dash online results programmatically?

  16. 16

    How can I enable/disable Dash online results programmatically?

  17. 17

    How do I programmatically stop all synths?

  18. 18

    How do I programmatically start an OAuth session?

  19. 19

    How do I close a SearchView programmatically?

  20. 20

    How do I show a SwiftUI overlay programmatically?

  21. 21

    How do I create a dijit TextBox programmatically?

  22. 22

    How do I create a basic UIButton programmatically?

  23. 23

    How do I exit a WPF application programmatically?

  24. 24

    How do I invoke a DiagnosticCommandMBean programmatically?

  25. 25

    How do i lock phone programmatically android

  26. 26

    How do I create constraints programmatically in Swift?

  27. 27

    How do I center images in UITableViewCells programmatically?

  28. 28

    How do I programmatically query CKEDITOR contents?

  29. 29

    How do I programmatically trigger "hoverintent" on an element

HotTag

Archive