> 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
> > 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
> > 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
> 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.
> 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
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
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
> 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
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