Rob Bradford wrote:
On Wed, 2009-11-18 at 08:06 -0500, Kris Warkentin wrote:
Valfre, Daniel wrote:
Hi all,
From an application, in runtime, is there a different way of finding
out if it is running on a Moblin or Moblin/based distro other than
looking at /etc/system-release or /proc/version?
Thanks in advance.
if pmap `pidof mutter` 2>/dev/null | grep -q moblin ; then
        echo running moblin
else
        echo not running moblin
fi


That will catch systems running GNOME shell. Please don't do that.

Are you sure? I doubt the mutter running in GNOME shell loads libraries with moblin in the name but if they do, we could be more specific with 'grep libmoblin-netbook-engine'. Since that's the actual mutter-moblin plugin, surely gnome shell is not loading that.

cheers,

Kris
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to