[Geany-devel] [PATCH] : Don't open directories passed in on the command line

Erik de Castro Lopo mle+tools at xxxxx
Tue Sep 14 08:40:23 UTC 2010


Hi all,

Doing something like:

   geany /tmp

on the command line geany will open with a empty file named "/tmp"
which cannot be saved because there is a directory /tmp already.

The attached patch just ignores all filenames passed on the 
command line which are directories.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5010-dont-open-directory-from-cmdline.diff
Type: text/x-diff
Size: 832 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100914/36bba7b4/attachment.diff>


More information about the Devel mailing list