-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wails 2.9.0 linux issue #3542
Comments
Came here to file this same issue. My outsider analysis is that this is a new bug with the drag and drop functionality released in v2.9.0, specifically in PR #3203 (and later included in #3516). The specific error is coming from line 510: wails/v2/internal/frontend/desktop/linux/window.c Lines 508 to 511 in d96d3b0
I'm not sure what the correct fix is as I'm not familiar with GTK programming. Enabling drag and drop in app settings does not fix this, because as C is a compiled language, the compiler is going to die on this anyways. |
I'm curious how @lyimmi and @jakubpeleska were able to test this on Ubuntu, since it seems the function signature of |
For completeness, here is my error log and doctor output:
|
Okay, I was able to compile successfully with just a small edit! (off of diff --git a/v2/internal/frontend/desktop/linux/window.c b/v2/internal/frontend/desktop/linux/window.c
index 49de5197..cf06f638 100644
--- a/v2/internal/frontend/desktop/linux/window.c
+++ b/v2/internal/frontend/desktop/linux/window.c
@@ -507,7 +507,7 @@ GtkWidget *SetupWebview(void *contentManager, GtkWindow *window, int hideWindowO
if(disableWebViewDragAndDrop)
{
- gtk_drag_dest_unset(G_OBJECT(webview));
+ gtk_drag_dest_unset(webview);
}
if(enableDragAndDrop)
@@ -827,4 +827,4 @@ void InstallF12Hotkey(void *window)
gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
GClosure *closure = g_cclosure_new(G_CALLBACK(sendShowInspectorMessage), window, NULL);
gtk_accel_group_connect(accel_group, GDK_KEY_F12, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_ACCEL_VISIBLE, closure);
-}
\ No newline at end of file
+} This is what I suspected would be needed originally. This makes me very curious how things were able to compile for others before. |
Hi, We should test it on the latest ubuntu too and if it is working without the conversion we could simply remove it. |
I ran the build github action manually with concurrent builds for 22.04 and 24.04 using the change in the linked PR and it appears to work: https://github.com/wailsapp/wails/actions/runs/9546659779 |
Would appreciate it if you could test master. It should be fixed. |
Using the latest master (b40fd93) in my go.mod allows my to compile on Arch Linux successfully. Thanks! Is there a chance this could be in a release soon, since v2.9.0 can't be used on Linux? |
@leaanthony @makew0rld I have checked on another machine with 24.04 and I can confirm the current master branch is working for me too. |
@lorypelli does the master branch work for you? |
I've published v2.9.1. LMK how you get on 👍 |
Description
I can't start dev and I can't build
To Reproduce
try starting dev or building on linux latest version of wails
Expected behaviour
it shouldn't give error
Screenshots
Attempted Fixes
No response
System Details
Additional context
I'm using pnpm to install packages and that's why I don't have npm
The text was updated successfully, but these errors were encountered: