switchboard-gnome-control-center-override needs switchboard2 port [$105]

Bug #1291738 reported by Cody Garver
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
High
Tom Beckmann

Bug Description

Install switchboard-gnome-control-center-override in Isis and observe that indicator Settings links (like Bluetooth) launch Switchboard but don't activate the desired plug.

"Power Settings..." launches gnome control center.

Revision history for this message
Corentin Noël (tintou) wrote :

FYI: The --open-plug values have changed since the new switchboard-2.0, it now uses code-names instead of path.

Changed in elementaryos:
status: New → Triaged
Avi Romanoff (aroman)
Changed in elementaryos:
assignee: Sergey "Shnatsel" Davidoff (shnatsel) → Avi Romanoff (aroman)
Revision history for this message
Avi Romanoff (aroman) wrote :

We're just upstreaming patches to the actual indicators themselves (or shipping our patched versions), so this is no longer needed.

See: https://plus.google.com/+AviRomanoff/posts/NyWP8vaV7EA

Changed in elementaryos:
status: Triaged → Invalid
assignee: Avi Romanoff (aroman) → nobody
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

There are things like Chromium and hyenas-know-what out there, we can't just drop the runtime compatibility layer.
It should be trivial to adapt for Switchboard 2.0, I'm just waiting on bug #1305345 to be fixed.

Changed in elementaryos:
status: Invalid → Triaged
Cody Garver (codygarver)
Changed in elementaryos:
status: Triaged → Confirmed
Cody Garver (codygarver)
summary: - switchboard-gnome-control-center-override does not work well under Isis
+ switchboard-gnome-control-center-override needs switchboard2 port
Revision history for this message
Lewis Goddard (lewisgoddard) wrote : Re: switchboard-gnome-control-center-override needs switchboard2 port
tags: added: bounty
summary: - switchboard-gnome-control-center-override needs switchboard2 port
+ switchboard-gnome-control-center-override needs switchboard2 port [$50]
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote : Re: switchboard-gnome-control-center-override needs switchboard2 port [$50]

I've actually made a stab at this back in the day and my resolution was that Switchboard itself needs improvements for this to fly - or for Switchboard to be usable, actually.

You see, gnome-control-center has plug invocations like "gnome-control-center sound". Switchboard in Luna had "switchboard -o sound". But Switchboard 2 has things like "switchboard -o hardware-gcc-sound" for plugs imported from G-C-C and "switchboard -o system-pantheon-about" for native plugs.

This is very problematic to translate to from just "sound", and furthermore, applications calling Switchboard directly should NEVER be concerned with whether the plug is native to Pantheon or not. But with this system the *app* has to know whether it's a native plug or not and call either -gcc- or -pantheon- depending on that. Do we want to break every single native app when we replace a G-C-C plug with a native plug? Hell no!

Same goes for the "hardware-" and such category prefixes. We've moved plugs between categories before and we will probably continue to do so. Apps are not concerned what category a plugs belongs to, and moving plugs between categories or adding/removing categories should not break any apps.

I've honestly tried looking up all the plugs in BASH which turned out to be waaaay more complicated than it should have been and then translating things like "sound" to these full-blown invocations. This logic really should be built into Switchboard itself, either in Vala, or as a script wrapper. I could even write that wrapper if implementing that in Vala proves overly tedious, but I'll need info about where o where the plug names are stored and how to list them without terrible haxxx.

summary: - switchboard-gnome-control-center-override needs switchboard2 port [$50]
+ switchboard-gnome-control-center-override needs switchboard2 port [$100]
Changed in elementaryos:
status: Confirmed → In Progress
assignee: nobody → Tom Beckmann (tombeckmann)
Revision history for this message
Cody Garver (codygarver) wrote : Re: switchboard-gnome-control-center-override needs switchboard2 port [$100]

Script updated, built and verified working in iso build 20140708

Changed in elementaryos:
status: In Progress → Fix Released
summary: - switchboard-gnome-control-center-override needs switchboard2 port [$100]
+ switchboard-gnome-control-center-override needs switchboard2 port [$105]
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.