[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-19 Thread elextr via Github-comments
> No, it's even dirtier like in > https://github.com/geany/geany/blob/88a0bfcb3618b2533a5e7e253c7ef7af3c0b0590/src/utils.c#L2282C1-L2282C2. Ok, so its effectively relative to the installation dir, which means its ok if the OPs USB drive shows up as F: instead of G: when moved from machine to

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-19 Thread Enrico Tröger via Github-comments
> > Actually on Windows, Geany is binary relocatable. > > @eht16 Is windows build with a relative PREFIX? No, it's even dirtier like in https://github.com/geany/geany/blob/88a0bfcb3618b2533a5e7e253c7ef7af3c0b0590/src/utils.c#L2282C1-L2282C2. I'm not proud of this, on Windows we use a different

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-19 Thread Enrico Tröger via Github-comments
> > a little batch file in the directory to execute "bin/geany.exe > > --config=portable_config" or something like this. > > the idea was to avoid using a launcher to have the editor in portable mode, i > know currently this is the only option. Why? Using a little batch script is easy and can

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-18 Thread elextr via Github-comments
> Actually on Windows, Geany is binary relocatable. @eht16 Is windows build with a relative PREFIX? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/3672#discussioncomment-7609482 You are receiving this because you are subscribed to this thread.

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-18 Thread eadmaster via Github-comments
> a little batch file in the directory to execute "bin/geany.exe > --config=portable_config" or something like this. the idea was to avoid using a launcher to have the editor in portable mode, i know currently this is the only option. > Actually on Windows, Geany is binary relocatable. For

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-18 Thread Enrico Tröger via Github-comments
Actually on Windows, Geany is binary relocatable. So what the OP requests should be possible in theory. But I don't think it's necessary to add anything to Geany itself. @eadmaster I suggest to test just putting the Geany installation directory to an USB drive or whatever medium you prefer and

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-03 Thread elextr via Github-comments
I think you have the wrong idea what the config directory is. It is the user configuration, not the Geany configuration. Files like `geany.conf` and `session.conf` are the settings the user changes during editing, nothing to do with the installation of Geany. It has to be a writable

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-03 Thread eadmaster via Github-comments
> The default startup reads the users configuration, that is the condition > that needs to work without options. The idea is to check whenever a "portable" file exists within the main exe install path before reading the actual `geany.conf` file. If it exists, it should overwrite

[Github-comments] Re: [geany/geany] Portable mode without passing a cmdline param (Discussion #3672)

2023-11-03 Thread elextr via Github-comments
If by "portable mode" you mean like [Vscode](https://code.visualstudio.com/docs/editor/portable) then no, Geany does not have a portable mode. The `--config=` option sets where the user config data goes, its not related to a "portable mode". I note that the link above says VS portable is not