Re: How to determine unity or gnome-shell or something else is running in C

2011-10-04 Thread Didier Roche

Le 05/10/2011 08:17, YunQiang Su a écrit :

  I am trying to make a program has different tray in different environment:
when indicator is supported, indicator plug-in is used,
when in gnome-shell or gnome-panel, notification area written by  gtk
when KDE, use the way KDE prefer,

  Then the problem is that how I can determine which are using dynamic?
  unity, gnome-shell or something else ?


You can detect Unity using dbus. There is a Bus Name 
com.canonical.Unity.Launcher which is there only when Unity is running. 
This method is 100% reliable compared to session name 
(DESKTOP_SESSION=ubuntu, DESKTOP_SESSION=ubuntu-2d…) which isn't cross 
distribution.


For other like gnome-shell, I'm not sure if something similar exists.

Didier

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: How to determine unity or gnome-shell or something else is running in C

2011-10-04 Thread YunQiang Su
 I am trying to make a program has different tray in different environment:
   when indicator is supported, indicator plug-in is used,
   when in gnome-shell or gnome-panel, notification area written by  gtk
   when KDE, use the way KDE prefer,

 Then the problem is that how I can determine which are using dynamic?
 unity, gnome-shell or something else ?

-- 
YunQiang Su

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Fwd: [Ironpython-users] IronPython Ubuntu 11.10 Beta 2

2011-10-04 Thread Colin Watson
On Tue, Oct 04, 2011 at 03:59:12AM -0600, Vernon Cole wrote:
>This was asked on the IronPython list. Now that Ubuntu has a version of
>mono which runs the current IronPython, it should be updated, not dropped.
> 
>Vernon Cole
>(sent from my 'droid phone)
> 
>-- Forwarded message --
>From: "Christopher Tottle" <[1]tottl...@gmx.co.uk>
>Date: Oct 4, 2011 2:00 AM
>Subject: [Ironpython-users] IronPython Ubuntu 11.10 Beta 2
>To: <[2]ironpython-us...@python.org>
> 
>Hi All,
> 
>Dose anybody know why IronPython has been removed from Ubuntu 11.10 Beta
>2? as it was in Beta 1

https://bugs.launchpad.net/ubuntu/+source/dlr-languages/+bug/831402

If somebody gets this fixed in Debian, I think we could still just about
reintroduce this.

-- 
Colin Watson   [cjwat...@ubuntu.com]

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Fwd: [Ironpython-users] IronPython Ubuntu 11.10 Beta 2

2011-10-04 Thread Vernon Cole
This was asked on the IronPython list. Now that Ubuntu has a version of mono
which runs the current IronPython, it should be updated, not dropped.

Vernon Cole
(sent from my 'droid phone)

-- Forwarded message --
From: "Christopher Tottle" 
Date: Oct 4, 2011 2:00 AM
Subject: [Ironpython-users] IronPython Ubuntu 11.10 Beta 2
To: 

Hi All,

Dose anybody know why IronPython has been removed from Ubuntu 11.10 Beta 2?
as it was in Beta 1

http://www.ubuntuupdates.org/packages/show/332742

Thanks,
Chris
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss