Skip to content

Instantly share code, notes, and snippets.

@0312birdzhang
Created February 28, 2019 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0312birdzhang/c1d28e3ae451247c286c301744782f49 to your computer and use it in GitHub Desktop.
Save 0312birdzhang/c1d28e3ae451247c286c301744782f49 to your computer and use it in GitHub Desktop.
SailfishOS goto settings page
import Nemo.DBus 2.0
DBusInterface {
id: settingsApp
service: "com.jolla.settings"
path: "/com/jolla/settings/ui"
iface: "com.jolla.settings.ui"
}
function goToSettings(path){
settingsApp.call('showPage', [path]);
}
goToSettings("system_settings/connectivity/vpn")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment