glaumar / PopTranslate

Translate the text selected by the mouse in wayland
GNU General Public License v3.0
2 stars 0 forks source link

Segmentation fault #1

Open ferroson opened 1 year ago

ferroson commented 1 year ago

This issue occur in Gnome Wayland. I didn't sure the problem related with Gnome itself or the other, because as far as I know there are wl-roots based wayland compositor and non-wl-roots compositor. The package installed from AUR.

The Error: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. "Translate: Add target language to context menu: SimplifiedChinese" "Translate: Add target language to context menu: English" "Translate: Add target language to context menu: Japanese" Segmentation fault (core dumped)

Edit: I just read the note that this app only support Plasma Wayland. Any plans to support wider wayland compositor?

glaumar commented 1 year ago

The core Wayland protocol cannot obtain the cursor position. Currently, PopTranslate uses the Wayland protocol extension provided by KDE, which can be found at https://invent.kde.org/libraries/plasma-wayland-protocols/-/blob/master/src/protocols/plasma-shell.xml, to implement the pop-up window under the cursor. If there are alternative methods available for other desktop environments, I would be happy to support them.