Hi all. I'm having a bit of an issue launching geany from the command line in windows. The issue is when I launch Geany from 1 dir to open a file in another dir. For example, if I'm in c:\foo\bar\some\path\ and I want to open file c:\foo\bar\file.txt I would type:
"c:\Program Files (x86)\Geany\bin\Geany.exe" ....\file.txt
it creates a new file instead c:\file.txt for some reason. "c:\Program Files (x86)\Geany\bin\Geany.exe" c:\foo\bar\file.txt works fine.
Here's the batch file I use for notepad++ that I modified for geany, but it gives the same issue:
@echo off REM calls geany with file to open from command line
if "%~1"=="" ( start /I /B "" "C:\Program Files (x86)\geany\bin\geany.exe" ) ELSE ( start /I /B "" """C:\Program Files (x86)\Geany\bin\geany.exe" %1 )
any one have any ideas?
thanks!
On 13-10-16 10:34 AM, Nick Sartor wrote:
Hi all. I'm having a bit of an issue launching geany from the command line in windows. The issue is when I launch Geany from 1 dir to open a file in another dir. For example, if I'm in c:\foo\bar\some\path\ and I want to open file c:\foo\bar\file.txt I would type:
"c:\Program Files (x86)\Geany\bin\Geany.exe" ....\file.txt
it creates a new file instead c:\file.txt for some reason. "c:\Program Files (x86)\Geany\bin\Geany.exe" c:\foo\bar\file.txt works fine.
Here's the batch file I use for notepad++ that I modified for geany, but it gives the same issue:
@echo off REM calls geany with file to open from command line
if "%~1"=="" ( start /I /B "" "C:\Program Files (x86)\geany\bin\geany.exe" ) ELSE ( start /I /B "" """C:\Program Files (x86)\Geany\bin\geany.exe" %1 )
any one have any ideas?
thanks!
Can you paste what it says in "Help->Document Messages" after trying to open a file like that. Also try unchecking "Preferences->New files->Open new documents from the command line" and see if it freaks out and gives any additional info that might be interesting.
There's some kind of "custom" code that tries to deal with handling filenames, probably either this code gets it wrong or it can't even detect the real file when checking for it and so opens a new file instead (related to above option).
Cheers, Matthew Brush
On 13-10-16 10:34 AM, Nick Sartor wrote:
Hi all. I'm having a bit of an issue launching geany from the command line in windows. The issue is when I launch Geany from 1 dir to open a file in another dir. For example, if I'm in c:\foo\bar\some\path\ and I want to open file c:\foo\bar\file.txt I would type:
"c:\Program Files (x86)\Geany\bin\Geany.exe" ....\file.txt
it creates a new file instead c:\file.txt for some reason. "c:\Program Files (x86)\Geany\bin\Geany.exe" c:\foo\bar\file.txt works fine.
Here's the batch file I use for notepad++ that I modified for geany, but it gives the same issue:
@echo off REM calls geany with file to open from command line
if "%~1"=="" ( start /I /B "" "C:\Program Files (x86)\geany\bin\geany.exe" ) ELSE ( start /I /B "" """C:\Program Files (x86)\Geany\bin\geany.exe" %1 )
any one have any ideas?
Actually, it sounds kind of like the bug that this fix resolved:
https://github.com/geany/geany/commit/eea7ffbff0c5bf14a9662483d989c4213f1392...
If you aren't using Geany 1.23.1 release, you should try that.
Cheers, Matthew Brush
Yep - 1.23.1 had the fix. Thanks Matthew!
On Wed, Oct 16, 2013 at 11:40 PM, Matthew Brush mbrush@codebrainz.cawrote:
On 13-10-16 10:34 AM, Nick Sartor wrote:
Hi all. I'm having a bit of an issue launching geany from the command line in windows. The issue is when I launch Geany from 1 dir to open a file in another dir. For example, if I'm in c:\foo\bar\some\path\ and I want to open file c:\foo\bar\file.txt I would type:
"c:\Program Files (x86)\Geany\bin\Geany.exe" ....\file.txt
it creates a new file instead c:\file.txt for some reason. "c:\Program Files (x86)\Geany\bin\Geany.exe" c:\foo\bar\file.txt works fine.
Here's the batch file I use for notepad++ that I modified for geany, but it gives the same issue:
@echo off REM calls geany with file to open from command line
if "%~1"=="" ( start /I /B "" "C:\Program Files (x86)\geany\bin\geany.exe" ) ELSE ( start /I /B "" """C:\Program Files (x86)\Geany\bin\geany.exe" %1 )
any one have any ideas?
Actually, it sounds kind of like the bug that this fix resolved:
https://github.com/geany/**geany/commit/**eea7ffbff0c5bf14a9662483d989c4** 213f1392f7https://github.com/geany/geany/commit/eea7ffbff0c5bf14a9662483d989c4213f1392f7
If you aren't using Geany 1.23.1 release, you should try that.
Cheers, Matthew Brush ______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users