I can quickly see the answer to this question degrading into "No. There is no 
way to check whether you are running on a Moblin system. You must check for 
every library and version that you need before you use it." 

I guess this question (i.e. the original subject of the thread) really boils 
down a Moblin compliance question: If there is a way to identify that software 
is running in a moblin netbook or MID or IVI environment (and it is not clear 
that there is such a way), what does it guarantee? I assume that it guarantees 
that the system is moblin compliant, i.e. the system has all the libraries and 
tools that are associated with moblin compliance.

Since at the present there does not seem to be any way to tag a "Moblin system" 
by looking for some running process or library on the system, I'm requesting a 
feature: it seems sensible that there be some way of giving a 
software-detectable, "moblin compliant" stamp of approval that says to running 
software "you can be guaranteed that the tools and libraries (and behavior?) on 
this system are moblin compliant."

Is this irrational? 

Clayne

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Kris Warkentin
> Sent: Wednesday, November 18, 2009 6:39 AM
> To: Rob Bradford
> Cc: [email protected]
> Subject: Re: [Moblin Dev] *** SPAM: Re: Identifying if running on Moblin
> 
> 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
_______________________________________________
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