New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meson: Prevent showing console after running geany in Windows #3811
base: master
Are you sure you want to change the base?
Conversation
Previously, a console window is shown in background when geany.exe is executed. This change fixes the above issue by specifying _windows_ subsystem type.
This would be similar as Line 157 in 3a92129
|
Is that harmless on Linux builds? If not it needs to be conditioned appropriately the same as I am not sure that the meson build has been tested on Windows, the Windows builds for Geany are usually cross built from Linux. Basically there are no Windows users amongst the regular Geany contributors, so a Grumpy olde guy like me says drop the Windows build until somebody(s) using Windows support it, but the really nice guy who makes the builds keeps doing it even though he doesn't use it. |
The geany 2.0 is built with meson in msys2 project, see https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-geany/PKGBUILD |
Maybe we can stop making a build for Windows (hopeful). |
I would suggest to provide Windows installer. Most of the users will still use official installer who are not familiar with msys2 and its packaging system. |
But as I said above, none of the major contributors use Geany on Windows, even the nice guy who makes the build (and yes with installer) so its virtually untested. |
Hmm, I first thought: this probably won't work as it would require users to install MSYS2 in order to install Geany within. On the other hand: maybe there is a way to use MSYS2 packages directly without installing a full Linux like environment. And it would save me from moaning about Windows build and installer issues 😄. |
Did not CI already do that in "CI Build / Linux Meson Build (pull_request)" ? |
Well, the CI just builds the code and runs some simple tests. This is already a good indicator, yes. Still, it is different from executing the full application with full loading of GTK and such. |
@eht16 This doesn't seem to have any impact on Linux, so looks fine on that end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
../meson.build:887: WARNING: Project targets '>= 0.53' but uses feature introduced in '0.56.0': win_subsystem arg in executable.
[…]
WARNING: Project specifies a minimum meson_version '>= 0.53' but uses features which were added in newer versions:
* 0.56.0: {'win_subsystem arg in executable'}
NOTICE: Future-deprecated features used:
* 0.56.0: {'meson.build_root', 'meson.source_root'}
So there are two ways to go I think:
- Depend on 0.56.0 (and possibly fix the deprecation warnings)
- Use
gui_app
instead for a 0.53-compatible alternative (but that is deprecated in 0.56)
Well, Ubuntu LTS 20.04 has a year of support left (April 2025) and it has Meson 0.54, maybe it has to be Kind of annoying that a Windows only feature causes a message on Linux, maybe the targeted version can be changed just for Windows? |
We already have deprecation warnings in 0.56, so if we want to support earlier jus use the older option I mentioned
|
IMO meson is still experimental and we don't need to support Ubuntu 20.04. Pick whatever meson makes the least problems for us. |
Previously, a console window is shown in background when geany.exe is executed. This change fixes the above issue by specifying windows subsystem type.