[Geany-devel] [PATCH] : Don't open directories passed in on the command line
Erik de Castro Lopo
mle+tools at xxxxx
Tue Sep 14 11:53:40 UTC 2010
Nick Treleaven wrote:
> 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);
Thanks.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Devel
mailing list