{"id":45,"date":"2014-06-06T23:41:10","date_gmt":"2014-06-06T21:41:10","guid":{"rendered":"http:\/\/blogs.gentoo.org\/remi\/?p=45"},"modified":"2022-02-07T09:40:47","modified_gmt":"2022-02-07T08:40:47","slug":"mumblings-about-gnome-3-12-geolocation-and-gsettingsdconf","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/remi\/2014\/06\/06\/mumblings-about-gnome-3-12-geolocation-and-gsettingsdconf\/","title":{"rendered":"Mumblings about Gnome 3.12, geolocation and gsettings\/dconf"},"content":{"rendered":"<p>A couple of days ago, like everyone using ~arch, I upgraded my Gnome desktop to 3.12. Though a few packages failed to build, the upgrade itself went pretty smooth. Hats off to the Gnome herders.<\/p>\n<p>Overall, 3.12 feels like a solid and well put together release. There were a few disappointments. The biggest of which being the removal of changing tab titles in gnome-terminal. I&#8217;ll spare everyone a long rant but this is feature I have been using extensively for the better part of a decade and I&#8217;m very disappointed to see this useful features go away without much justification. Material for another blog post&#8230; maybe.<\/p>\n<p>One thing I did notice really quickly is the new geolocation entry in the shell&#8217;s main top-right menu. Not being a fan of geolocation, I went out to see how I could turn it off by default system-wide as my system has more than one regular user.<\/p>\n<p>Going through dconf-editor, I found the correct setting key: org.gnome.shell.location.max-accuracy-level. This key is an enum and the correct value (at least to my taste) is &#8216;off&#8217;. Setting this for each user is a matter of running &#8220;gsettings set&#8221;. However, to change the default value, a little elbow grease is required.<\/p>\n<p>GLib&#8217;s GSettings is actually an API for various backends. The one we use on Linux is dconf. So this is what I&#8217;ll have to bang on. This <a href=\"https:\/\/wiki.gnome.org\/action\/show\/Projects\/dconf\/SystemAdministrators\" title=\"Gnome Wiki page\">https:\/\/wiki.gnome.org\/action\/show\/Projects\/dconf\/SystemAdministrators<\/a> basically has all the reasoning behind it all. I&#8217;ll just summarize what I did.<\/p>\n<ol>\n<li> Create a \/etc\/dconf\/profile\/user with the following content:<br \/>\n<code>user-db:user<br \/>\nsystem-db:site<\/code><\/li>\n<li>Create a matching &#8216;site&#8217; settings database (I could have called it anything really) in \/etc\/dconf\/db\/site.d\/ containing my new default settings file &#8217;00_settings&#8217;<br \/>\n<code>[org\/gnome\/shell\/location]<br \/>\nmax-accuracy-level='off'<\/code><\/li>\n<li>Run &#8216;dconf-update&#8217; which will translate the INI-like settings file into a binary dconf file &#8216;\/etc\/dconf\/db\/site&#8217;<\/li>\n<\/ol>\n<p>Now, I assume GSettings did not pick up this new profile on its own, so I had to restart my session. But from there, all changes to the settings file followed by a &#8216;dconf update&#8217; automatically propagates to running applications, gnome-shell included.<\/p>\n<p>Overall, this was easier than I anticipated. Hope that helps anyone trying to do similar things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of days ago, like everyone using ~arch, I upgraded my Gnome desktop to 3.12. Though a few packages failed to build, the upgrade itself went pretty smooth. Hats off to the Gnome herders. Overall, 3.12 feels like a solid and well put together release. There were a few disappointments. The biggest of which &hellip; <a href=\"https:\/\/blogs.gentoo.org\/remi\/2014\/06\/06\/mumblings-about-gnome-3-12-geolocation-and-gsettingsdconf\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mumblings about Gnome 3.12, geolocation and gsettings\/dconf<\/span><\/a><\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":3,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/posts\/45\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/remi\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}