JaKooLit / Fedora-Hyprland

For automated installation of Hyprland on Fedora or any Fedora based distros
GNU General Public License v3.0
1.02k stars 78 forks source link

[Bug]: Copy paste not working #137

Closed ushaganeshdurai closed 3 weeks ago

ushaganeshdurai commented 1 month ago

Bug Report

Description

I’m experiencing an issue where I cannot copy and paste text from my browser into Visual Studio Code.

Steps to Reproduce

1.Open a web browser (e.g., Chrome, Firefox). 2.Navigate to any webpage with text you want to copy. 3.Select the text and copy it (Ctrl+C or right-click and select "Copy"). 4.Open Visual Studio Code. 5.Attempt to paste the copied text (Ctrl+V or right-click and select "Paste").

Expected Behavior

The copied text should be pasted into VS Code without any issues.

Actual Behavior

No text is pasted in VS Code, or the pasted text appears as blank or unexpected characters.

show output of inxi -CGIsSMnr install package inxi if not exist

System:
  Host: fedora Kernel: 6.10.12-200.fc40.x86_64 arch: x86_64 bits: 64
  Desktop: Hyprland v: 0.43.0 Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: HP product: HP Laptop 15s-eq2xxx v: N/A
    serial: <superuser required>
  Mobo: HP model: 887A v: 59.23 serial: <superuser required> UEFI: AMI
    v: F.31 date: 08/02/2023
CPU:
  Info: 6-core model: AMD Ryzen 5 5500U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 898 min/max: 400/4056 cores: 1: 400 2: 1397 3: 1397
    4: 400 5: 400 6: 1396 7: 400 8: 1397 9: 400 10: 400 11: 1397 12: 1397
Graphics:
  Device-1: AMD Lucienne driver: amdgpu v: kernel
  Device-2: Chicony HP TrueVision HD Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.3
    compositor: Hyprland v: 0.43.0 driver: X: loaded: modesetting dri: radeonsi
    gpu: amdgpu resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.7 renderer: AMD Radeon
    Graphics (radeonsi renoir LLVM 18.1.6 DRM 3.57 6.10.12-200.fc40.x86_64)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
    driver: rtw_8821ce
  IF: wlo1 state: up mac: 0a:f3:1d:6f:ef:21
Sensors:
  System Temperatures: cpu: 48.2 C mobo: N/A gpu: amdgpu temp: 46.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 0
Repos:
  No active dnf repos in: /etc/dnf/dnf.conf
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:erikreider:SwayNotificationCenter.repo
    1: copr:copr.fedorainfracloud.org:erikreider:SwayNotificationCenter ~ https://download.copr.fedorainfracloud.org/results/erikreider/SwayNotificationCenter/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:errornointernet:packages.repo
    1: copr:copr.fedorainfracloud.org:errornointernet:packages ~ https://download.copr.fedorainfracloud.org/results/errornointernet/packages/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo
    1: copr:copr.fedorainfracloud.org:phracek:PyCharm ~ https://download.copr.fedorainfracloud.org/results/phracek/PyCharm/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:solopasha:hyprland.repo
    1: copr:copr.fedorainfracloud.org:solopasha:hyprland ~ https://download.copr.fedorainfracloud.org/results/solopasha/hyprland/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/brave-browser.repo
    1: brave-browser ~ https://brave-browser-rpm-release.s3.brave.com/$basearch
  Active yum repos in: /etc/yum.repos.d/docker-ce.repo
    1: docker-ce-stable ~ https://download.docker.com/linux/fedora/$releasever/$basearch/stable
  Active yum repos in: /etc/yum.repos.d/fedora-cisco-openh264.repo
    1: fedora-cisco-openh264 ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/fedora-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/fedora-updates.repo
    1: updates ~ https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/fedora.repo
    1: fedora ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/gh-cli.repo
    1: gh-cli ~ https://cli.github.com/packages/rpm
  Active yum repos in: /etc/yum.repos.d/google-chrome.repo
    1: google-chrome ~ https://dl.google.com/linux/chrome/rpm/stable/x86_64
  Active yum repos in: /etc/yum.repos.d/mongodb-org-7.0.repo
    1: mongodb-org-7.0 ~ https://repo.mongodb.org/yum/redhat/9/mongodb-org/7.0/x86_64/
  No active yum repos in: /etc/yum.repos.d/mysql-community-debuginfo.repo
  No active yum repos in: /etc/yum.repos.d/mysql-community-source.repo
  Active yum repos in: /etc/yum.repos.d/mysql-community.repo
    1: mysql-connectors-community ~ http://repo.mysql.com/yum/mysql-connectors-community/fc/$releasever/$basearch
    2: mysql-tools-community ~ http://repo.mysql.com/yum/mysql-tools-community/fc/$releasever/$basearch
    3: mysql-cluster-innovation-community ~ http://repo.mysql.com/yum/mysql-cluster-innovation-community/fc/$releasever/$basearch
  No active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates.repo
    1: rpmfusion-free-updates ~ https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-free.repo
    1: rpmfusion-free ~ https://mirrors.rpmfusion.org/metalink?repo=free-fedora-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo
    1: rpmfusion-nonfree-nvidia-driver ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-steam.repo
    1: rpmfusion-nonfree-steam ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
    1: rpmfusion-nonfree-updates ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree.repo
    1: rpmfusion-nonfree ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/vscode.repo
    1: code ~ https://packages.microsoft.com/yumrepos/vscode
Info:
  Memory: total: 16 GiB note: est. available: 14.94 GiB used: 2.26 GiB (15.1%)
  Processes: 374 Uptime: 6m Shell: Zsh inxi: 3.3.34
MaaTReD commented 1 month ago

Hello, I conducted some tests and encountered the same issue. If you open the ClipboardManager, use "$mainMod, ALT, V" to select the last content, and then try to paste with "Control, V," it works.

In Visual Studio Code, if you change the key binding from "editor.action.pasteAs" and then try to paste and select HTML, it works as well.

Additionally, I performed some tests in an attempt to resolve the problem, but unfortunately, I was not successful.

ushaganeshdurai commented 1 month ago

Hello, set editor.action.clipboardPasteAction to Paste command with keybinding of Ctrl + V. Now, it works for me. I can paste it from any browser. I've updated my entire system as well.

On Sat, 19 Oct, 2024, 10:43 pm Matheus Guilherme Angonese dos Santos, < @.***> wrote:

Hello, I conducted some tests and encountered the same issue. If you open the ClipboardManager, use "$mainMod, ALT, V" to select the last content, and then try to paste with "Control, V," it works.

In Visual Studio Code, if you change the key binding from "editor.action.pasteAs" and then try to paste and select HTML, it works as well.

Additionally, I performed some tests in an attempt to resolve the problem, but unfortunately, I was not successful.

— Reply to this email directly, view it on GitHub https://github.com/JaKooLit/Fedora-Hyprland/issues/137#issuecomment-2424095864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HTLSEP736EP2ZAUGOSRTZ4KHNBAVCNFSM6AAAAABPP5ZXZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGA4TKOBWGQ . You are receiving this because you authored the thread.Message ID: @.***>

ushaganeshdurai commented 1 month ago

Hello, set editor.action.clipboardPasteAction to Paste command with keybinding of Ctrl + V. Now, it works for me. I can paste it from any browser. I've updated my entire system as well.

Linxford commented 1 month ago

Hello, set editor.action.clipboardPasteAction to Paste command with keybinding of Ctrl + V. Now, it works for me. I can paste it from any browser. I've updated my entire system as well. On Sat, 19 Oct, 2024, 10:43 pm Matheus Guilherme Angonese dos Santos, < @.> wrote: Hello, I conducted some tests and encountered the same issue. If you open the ClipboardManager, use "$mainMod, ALT, V" to select the last content, and then try to paste with "Control, V," it works. In Visual Studio Code, if you change the key binding from "editor.action.pasteAs" and then try to paste and select HTML, it works as well. Additionally, I performed some tests in an attempt to resolve the problem, but unfortunately, I was not successful. — Reply to this email directly, view it on GitHub <#137 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HTLSEP736EP2ZAUGOSRTZ4KHNBAVCNFSM6AAAAABPP5ZXZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGA4TKOBWGQ . You are receiving this because you authored the thread.Message ID: @.>

the with mine is that, if i copy from any other browser like firefox, safari and i paste in vscode with ctl+v , it works well

but anything copied from Brave or Chrome doesn't work

all keybindings are ok.............

anyone having the same issue with brave???

JaKooLit commented 1 month ago

Hello, set editor.action.clipboardPasteAction to Paste command with keybinding of Ctrl + V. Now, it works for me. I can paste it from any browser. I've updated my entire system as well. On Sat, 19 Oct, 2024, 10:43 pm Matheus Guilherme Angonese dos Santos, < @.**> wrote: Hello, I conducted some tests and encountered the same issue. If you open the ClipboardManager, use "$mainMod, ALT, V" to select the last content, and then try to paste with "Control, V," it works. In Visual Studio Code, if you change the key binding from "editor.action.pasteAs" and then try to paste and select HTML, it works as well. Additionally, I performed some tests in an attempt to resolve the problem, but unfortunately, I was not successful. — Reply to this email directly, view it on GitHub <#137 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HTLSEP736EP2ZAUGOSRTZ4KHNBAVCNFSM6AAAAABPP5ZXZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGA4TKOBWGQ . You are receiving this because you authored the thread.Message ID: @.**>

the with mine is that, if i copy from any other browser like firefox, safari and i paste in vscode with ctl+v , it works well

but anything copied from Brave or Chrome doesn't work

all keybindings are ok.............

anyone having the same issue with brave???

This was just a repost original from here https://discord.com/channels/1151869464405606400/1242108439866507284

Posting this as I have experience and lately some people experienced it

Background issues: 1.) Some weird Huge Border at the Pop up file manager when saving from Electron Based web browser, or attaching something to discord. 2.) Cant paste clipboard contents to and from any of this apps

The fix: Launch the app with --enable-features=UseOzonePlatform --ozone-platform=wayland

ie. discord --enable-features=UseOzonePlatform --ozone-platform=wayland

Flatpak electron based apps does not seem to be affected by it

For Nixos: Simply add this to your configuration.nix environment.sessionVariables.NIXOS_OZONE_WL = "1";

For those of you who knows how to put the above on ENV, pls state here

just an additional, if launching above is succesful, try to disable hardware acceleration on it

vscode / codium https://gist.github.com/andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff

for discord, go to discord settings

For nvidia

https://wiki.hyprland.org/Nvidia/#flickering-in-electron--cef-apps

JaKooLit commented 1 month ago

sorry didnt format well.. im using my phone atm

this was just a post from my discord

see if that helps

ushaganeshdurai commented 1 month ago

This is perfect, thank you!

On Sun, 20 Oct, 2024, 5:18 pm Ja.KooLit, @.***> wrote:

sorry didnt format well.. im using my phone atm

this was just a post from my discord

see if that helps

— Reply to this email directly, view it on GitHub https://github.com/JaKooLit/Fedora-Hyprland/issues/137#issuecomment-2424877456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HTLV4RYO5NZ7Z7KHIZHDZ4OKCPAVCNFSM6AAAAABPP5ZXZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUHA3TONBVGY . You are receiving this because you modified the open/close state.Message ID: @.***>