should provide an IsUnityRunning() dbus method

Reported by Sebastien Bacher on 2010-12-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Medium
Unassigned
unity (Ubuntu)
Medium
Unassigned

Bug Description

Having a IsUnityRunning() interface provided by unity over dbus would be useful for software-center or other applications that will need to check on what desktop they are running to adapt their behaviour.

Didier Roche (didrocks) wrote :

definitively needed, right.

Changed in unity:
status: New → Triaged
Changed in unity (Ubuntu):
status: New → Triaged
Changed in unity:
importance: Undecided → Medium
Changed in unity (Ubuntu):
importance: Undecided → Medium
tags: added: bitesize
Didier Roche (didrocks) wrote :

Note that it should be in the panel itself, not the service as the service can live even it unity panel crashed.

Michael Terry (mterry) on 2010-12-13
Changed in unity:
assignee: nobody → Michael Terry (mterry)
status: Triaged → In Progress
Michael Terry (mterry) wrote :

You don't need an actual dbus function call for this, do you? Just check if the name 'com.canonical.Unity' is owned.

Changed in unity:
assignee: Michael Terry (mterry) → nobody
status: In Progress → Incomplete
Sebastien Bacher (seb128) wrote :

Not sure, I think Didier had concerns about that, Didier?

Didier Roche (didrocks) wrote :

Indeed, that doesn't work, the name is owned by the unity-panel-service IIRC. This doesn't mean that the graphic display is there (for instance, if you do disable it after launching it in ccsm, or metacity --replace, or if it crashes…) So the method should be answered by the panel, not the service (or the service should ping the panel…)

Paul Sladen (sladen) wrote :

Perhaps you actually want something like isInitialised() or isReady()... this would cope with start-up delays, possibly crashes (yes, these happen).

Alex Launi (alexlauni) wrote :

I don't understand why checking if com.canonical.Unity is owned doesn't work. That name is *not* owned by the Unity panel service.

Alex Launi (alexlauni) wrote :

@Didier, you are thinking of com.canonical.Unity.Panel.Service, not com.canonical.Unity.

Completely agree with Alex. Check if com.canonical.Unity is owned. If
this doesn't work for some reason, then that's the thing we need to
fix.

Didier Roche (didrocks) wrote :

I didn't know that one, ok, make sense then :) Thanks guys!

Changed in unity (Ubuntu):
status: Triaged → Invalid
Changed in unity:
status: Incomplete → Invalid

For reference:

The relevant DBus method is org.freedesktop.DBus.NameHasOwner(in s
name) -> out b has_owner

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers