sonnyp / Commit

Commit message editor

Home Page:https://apps.gnome.org/Commit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run on wayland

RustPanda opened this issue · comments

"flatpak run --socket=wayland --env=GDK_BACKEND=wayland --file-forwarding re.sonny.Commit @@"
fedora 35

commented

What is the problem?

I installed everything according to the instructions, but nothing worked for me. I am using Fedora 35 + Gnome 41.
Wayland's explicit direction helped.

The problem is that the flat bag out of the box doesn't work. To start it, you have to dance with a tambourine.

commented

I use Fedora 35 , GNOME 41 and Commit flatpak.

I don't have this problem. Maybe you could share more about what happens - do you get an error message or anything?

@sonnyp May not be using Wayland? Yes, I am getting the error:

Waiting for your editor to close the file... 
(re.sonny.Commit:2): Gtk-WARNING **: 12:57:24.606: cannot open display: 
error: There was a problem with the editor 'flatpak run --file-forwarding re.sonny.Commit @@'.
Please supply the message using either -m or -F option.

Adding --env=GDK_BACKEND=wayland helped me

commented

I use Wayland

sonny@porygon ~> echo $XDG_SESSION_TYPE
wayland

What if you run flatpak run re.sonny.Commit directly?

@sonnyp, window opens, no errors

commented

Interesting - so it only happens when git opens Commit.

I really don't know how to reproduce the problem - it's gonna make it difficult to debug.

How did you install Git?

Is there anything special about your setup you can think of ?

I installed the git with the command: $ sudo dnf install git. I am using ASUS-TUF-Gaming-FX505DD-DT-DU laptop purchased in Korea.

@sonnyp i reinstalled fedora completely but it didn't help

commented

@RustPanda can you comment on how you solved the problem? Might help others.

@sonnyp i reinstalled fedora. Works on Fedora 35 and Fedora 36. I did not do anything.

@sonnyp May not be using Wayland? Yes, I am getting the error:

Waiting for your editor to close the file... 
(re.sonny.Commit:2): Gtk-WARNING **: 12:57:24.606: cannot open display: 
error: There was a problem with the editor 'flatpak run --file-forwarding re.sonny.Commit @@'.
Please supply the message using either -m or -F option.

Adding --env=GDK_BACKEND=wayland helped me

Had exactly the same problem on F36@Wayland. The env var indeed fixed an issue for me. Note that I initiaally installed fedora 35 and then upgraded to 36 as opposed to fresh 36 install (might be related).