Skip to content
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

Fix gdk crash #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix gdk crash #75

wants to merge 1 commit into from

Conversation

Nista11
Copy link

@Nista11 Nista11 commented Sep 27, 2024

Fixes #73.

The problem and solution are also explained here: https://bbs.archlinux.org/viewtopic.php?id=267747, and something very similar happened in #57 as well.

To summarise, there is a polkit rule in com.ubuntu.pkexec.gufw.policy which points to /usr/bin/gufw-pkexec.
The gufw script called gufw-pkexec without specifying its full path, which caused issues.
#57 fixed it by replacing the call with $(which gufw-pkexec).
However, this can resolve to other paths, like /sbin/gufw-pkexec, which is a link to /usr/bin/gufw-pkexec, so it crashes.

This is why readlink -f has to be used to always point to the original, /usr/bin/gufw-pkexec path.
As an alternative you could just add /usr/bin/gufw-pkexec to avoid these commands, as it is already expected that they will resolve to that.

@Nista11 Nista11 mentioned this pull request Sep 27, 2024
@costales
Copy link
Owner

I put in the past those "tricks" to get the path of Gufw and it was a mess.
Where are you testing (OS, version)? I think this is working in Ubuntu.
Best regards.

@Nista11
Copy link
Author

Nista11 commented Sep 28, 2024

I am running Arch Linux with Gnome on Wayland. I've tried testing it on Ubuntu, and with apt it works because the files are put to /usr/bin, but the manual setup puts them at /usr/local/bin as it is in front of it in the PATH variable, so the same error happens eventually.

@costales
Copy link
Owner

Then I suppose someone should fix the release in Arch Linux (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on wayland
2 participants