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
On Tue, 14 Sep 2010 18:40:23 +1000 Erik de Castro Lopo mle+tools@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
Nick Treleaven wrote:
On Tue, 14 Sep 2010 18:40:23 +1000 Erik de Castro Lopo mle+tools@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