Re: [gnome-love] Couple questions



Attempted answers to two out of three...

On Mon, May 28, 2001 at 09:56:18PM -0400, Kevin Vandersloot wrote:
First I thought Calum Benson had a cool observation that the desk-guide
applet had no indication of a way to configure multiple desktops so I
went ahead and added a right-click option to the desk-guide that just
opens the sawfish workspace capplet. My question is how do I go about
determining whether the user is actually using sawfish. Right now I just
check for sawfish-capplet binary, but how do I check to see if sawfish
is actually running? Is there an easy way to query GNOME to see if
sawfish is the window manager?

There's a configuration file ($HOME/.gnome/default.wm) which contains
the binary that's run for your default window manager. Seeing if the
basename of that binary if sawfish would suffice (and you can access the
file's contents using the normal gnome config file reading functions).

[...]
Finally in creating a cvs diff if I create a new file it does not show
up in the diff. I'm using exactly what Chema told me -
cvs -z3 diff -RN -u5
Chema also said to do a "cvs add" for new files but I get a message
saying I need CVS write access.

I just went back and read Chema's original mail and it's possibly not
clear what is requiredi (although he did mention it): to have a new file
included when you do 'cvs diff -N', it already needs to be known to the
CVS repository. So you need to have already run 'cvs add' for that file.

Unfortunately, as you discovered, you can't add things to the Gnome CVS
repository without an account there. Usually, getting an account is not
too painful a process once you've contributed a couple of decent
patches. In the interim, it's best to create your diff of the files that
already exist and attach any new files as extras when you send to patch
to whomever.

Somebody is preparing a document containing little tips like this (and
general Gnome cvs "common practice" guidelines) and that will no doubt
be mentioned on here when it's ready, too.

Cheers,
Malcolm

-- 
Atheism is a non-prophet organization.




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