[Geany] [PATCH] problem with default tools path settings

Enrico Tröger enrico.troeger at xxxxx
Thu Mar 13 09:33:22 UTC 2008


On Wed, 12 Mar 2008 13:16:47 +0200, Yura Siamashka <yurand2 at gmail.com>
wrote:

> Hi
> 
> Today I desided to see if Arch linux can help me in building custom linux distributive, and I encounter pitfall.
> 
> Step to reproduce:
> 
> 1) Install Arch
> 2) Install geany
> 3) run geany (It remember that my make_cmd is "" ;-) )
> 4) Install make
> 
> After this step "make" support is still broken since make_cmd firmly set to "". Even more it dangerously try to execute "all" or any other custom build target in sh. I think it is not very nice.
> 
> Here is two patches, each solve the problem:
> 
> 1) If we get "" from settings try to find default tool in path.
> 
> 2) If tool cmd is not set in config just use default value without any manipulation with g_find_program_in_path()
> If we can find it with this function, then usage without full path will work too. So it should not be too smart.
Not really. This is basically true but only if the G_SPAWN_SEARCH_PATH
flag is passed to g_spawn_* calls. This flag is passed in Geany where
it is needed except one case in the Find in Files code but it should be
fixed now.

Thanks a lot.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080313/f52e381e/attachment.pgp>


More information about the Users mailing list