Re: Integrate VMware and Gnome



Chris Rogers wrote:

> > Q: Is there a way to run a program each time a user opens its first
> >    gmc session? This program could prompt the user 'do you want VMware
> >    icons on your desktop?' And if the user says yes, it would create
> >    the icons. Of course, the program should be given the user's
> >    desktop directory as an argument
> hmm, no idea how to make it only do it on the first open, short of ugly
> flags in the filesystem or some-such.

It doesn't seem like this would be too difficult.  AFAIK gmc gets launched when
you log in, and killed when you log out.  This would be where the prompt occurs
(or when gmc crashes and restarts).  I wonder if this could be achieved by
adding a startup program to gnome-session... (have no idea, just thinking out
loud).

> > Q: In this email, I have referred to a lot a gnome directories. Is
> >    there a central database (whose location does not change) where
> >    these directories ($PREFIX, $LIBDIR) are stored? We need to install
> >    our stuff on tons of distributions, and all of them have chosen
> >    different places for those directories :(
> I believe there is currently no way to figure this out, but I am not sure.
> Everyhing is in fixed places under $PREFIX, but that can change, though
> /usr/local, /usr, and /opt/gnome seem to be the most popular.

I think running gnome-config will tell you what you want to know, i.e.
gnome-config --prefix

You can just type gnome-config to see a list of what it will tell you.

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]