[Geany-devel] [PATCH] : Don't open directories passed in on the command line
Nick Treleaven
nick.treleaven at xxxxx
Tue Sep 14 11:31:25 UTC 2010
On Tue, 14 Sep 2010 18:40:23 +1000
Erik de Castro Lopo <mle+tools at mega-nerd.com> wrote:
> 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.
Thanks.
I committed a similar change that uses:
g_file_test(filename, G_FILE_TEST_IS_DIR);
Regards,
Nick
More information about the Devel
mailing list