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

Paste In URL Field Not Working on Linux Wayland #137

Open
6 tasks done
eddy-geek opened this issue Jun 13, 2023 · 6 comments
Open
6 tasks done

Paste In URL Field Not Working on Linux Wayland #137

eddy-geek opened this issue Jun 13, 2023 · 6 comments
Labels
question Further information is requested

Comments

@eddy-geek
Copy link

  • I think my problem is NOT with youtube-dl
  • I've verified and i assure that I'm running yt-dlg 1.X.Y
  • I assure that i am using the latest version of youtube-dl
  • Searched bugtracker
  • I've read the FAQs file

What is the purpose of your issue?

  • Bug report

What operating system do you use ?

Fedora 38, Linux 6.2.15-300.fc38.x86_64
Wayland, KDE Plasma 5.27.4, Qt 5.15.9
Python 3.11.3
wxPython 4.2.0
yt-dlg 1.8.5 from pip

List of actions to perform to reproduce the problem:

  1. Try to paste with Ctrl-V, menu, or middle-click
  2. nothing happens

Similar symptoms to #122 but I checked paste works with the basic wxpython sample given in wxWidgets/Phoenix#1391

So yt-dlg is doing something weird (maybe #123 regressed this particular environment? I am surprised there is a need for the custom _paste_from_clipboard code at all...)

@eddy-geek
Copy link
Author

eddy-geek commented Jun 13, 2023

As a workaround, commenting the custom paste handler in mainframe.py#L407 works :)

        self._url_list = self._create_textctrl(
            wx.TE_MULTILINE | wx.TE_DONTWRAP, # self._on_urllist_edit
        )

No adverse effect that I can see.

(vim ~/.local/lib/python3.11/site-packages/youtube_dl_gui/mainframe.py +407)

@oleksis
Copy link
Owner

oleksis commented Jun 14, 2023

From where you install wxPython:

  1. from the system with dnf or using pip ?

  2. In this comment wxPython will need compiled with Unicode support . Can share the steps you follow to install yt-dlg

@oleksis oleksis added the question Further information is requested label Jun 15, 2023
@oleksis
Copy link
Owner

oleksis commented Jun 15, 2023

I install Fedora Workstation 38 and follow your workaround

sudo dnf install python3-wxpython4
pip install yt-dlg

and Ctrl-V working OK. Can see the video demo:

Fedora38.mp4

You can share more information to reproduce the error ?

@oleksis
Copy link
Owner

oleksis commented Jun 17, 2023

Wayland Primary Selection / Clipboard

It's about how Fedora 38 with KDE and Wayland implement Clipboard and Primary Selection

Doing the test, work with the settings

  • System Settings -> General Behavior
    • Middle Click: checked
  • Clipboard settings: General Configuration
    • Selection and Clipboard: checked

Open yt-dlg with the GDK_BACKEND environment variable

GDK_BACKEND=x11 yt-dlg

You can watch the following demo video using wxPython with KDE and Wayland

Fedora38-Wayland-Clipboard-Primary_Selection.mp4

@oleksis
Copy link
Owner

oleksis commented Jun 19, 2023

@eddy-geek Can test the yt-dlg version 1.8.6 ?

Install from GitHub

python3 -m pip install -U git+https://github.com/oleksis/youtube-dl-gui#egg=yt-dlg

Install from TestPyPI

python3 -m pip install -U --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ yt-dlg

@oleksis
Copy link
Owner

oleksis commented Jun 19, 2023

Video demo:

Fedora38-Wayland-Clipboard-Primary_Selection-Fix.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants