Bug 42068 - Should obey org.gnome.Empathy use-conn GSettings key
Summary: Should obey org.gnome.Empathy use-conn GSettings key
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: mission-control (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/wj...
Whiteboard: r+ with trivia
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-10-20 10:17 UTC by Will Thompson
Modified: 2011-11-04 11:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2011-10-20 10:17:14 UTC
Empathy has a GSettings key which allows advanced users to instruct it to assume it's always online, even if NM claims otherwise. This is particularly useful for Telepathy hackers on trains and planes, using a local XMPP server for testing. ;)

MC currently has no way to do this.

Alex Larsson suggested a way (endorsed by Ryan Lortie) to give MC a GSettings key which is kept in sync with the Empathy one. The approach is to define a schema whose identifier is im.telepathy.MissionControl.StolenFromEmpathy but whose path is /org/gnome/empathy/ which has a single key, 'use-conn'. This would mean a separate setting would be visible in (say) gsettings list-recursively, but under the bonnet they would use the same value stored in dconf. So this gives us a migration path that doesn't make MC depend on Empathy or require syncing versions of the two up too closely.
Comment 1 Will Thompson 2011-11-03 09:55:42 UTC
Well, I have a branch here, but it doesn't work, and I can't figure out why not. It always believes the key to be true, and doesn't react to changes. (But the gsettings command-line tool reads the value properly…)
Comment 2 Will Thompson 2011-11-03 10:17:07 UTC
Oh actually it does work. Ignore me. (Well, don't ignore me! Review my branch!)
Comment 3 Simon McVittie 2011-11-03 11:01:56 UTC
+export GSETTINGS_SCHEMA_DIR=@abs_top_builddir@/data

More portable as:

GSETTINGS_SCHEMA_DIR=@abs_top_builddir@/data
export GSETTINGS_SCHEMA_DIR

Other than that, looks good.
Comment 4 Will Thompson 2011-11-04 11:46:20 UTC
Fixed the trivia (and another non-POSIX export) and merged; thanks!

<http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=b89a27403d632725504c21c6079b936f9c1c6c9c>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.