JaKooLit / Hyprland-Dots

Hyprland dotfiles - used as main repo for all my Hyprland Install Scripts.
GNU General Public License v3.0
1.07k stars 136 forks source link

[Bug]: Paste not working in any editor #356

Closed AvaterClasher closed 5 months ago

AvaterClasher commented 5 months ago

Bug Report

Description

Paste is not working for any editor after upgrading to the latest dots. The text is copied is shown on the history.

Steps to Reproduce

  1. Ctrl + c any text.
  2. Try pasting in any editor like zed, vscode etc. Works on neovim idk why ??

Expected Behavior

Should have pasted the text on Ctrl + v

Actual Behavior

Nothing happens.

Screenshots

image image

Environment

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

show output here

System:
  Host: zen Kernel: 6.9.6-arch1-1 arch: x86_64 bits: 64
  Desktop: Hyprland v: 0.41.2 Distro: EndeavourOS
Machine:
  Type: Convertible System: LENOVO product: 82HS
    v: IdeaPad Flex 5 14ITL05 serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76485 WIN
    serial: <superuser required> UEFI: LENOVO v: FXCN41WW date: 09/19/2022
CPU:
  Info: quad core model: 11th Gen Intel Core i7-1165G7 bits: 64
    type: MT MCP cache: L2: 5 MiB
  Speed (MHz): avg: 1071 min/max: 400/4700 cores: 1: 1869 2: 954
    3: 1012 4: 400 5: 981 6: 400 7: 1825 8: 1129
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915
    v: kernel
  Device-2: Bison Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.Org v: 24.1 with: Xwayland v: 24.1.0
    compositor: Hyprland v: 0.41.2 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: iris,swrast
    platforms: wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa
    v: 24.1.2-arch1.1 renderer: Mesa Intel Xe Graphics (TGL GT2)
  API: Vulkan v: 1.3.279 drivers: intel surfaces: xcb,xlib,wayland
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Active pacman repo servers in: /etc/pacman.conf
    1: https://releases.warp.dev/linux/pacman/$repo/$arch
  Active pacman repo servers in: /etc/pacman.d/endeavouros-mirrorlist
    1: https://mirror.albony.xyz/endeavouros/repo/$repo/$arch
    2: https://mirrors.nxtgen.com/endeavouros-mirror/repo/$repo/$arch
    3: https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
    4: https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch
    5: https://mirror.funami.tech/endeavouros/repo/$repo/$arch
    6: https://de.freedif.org/EndeavourOS/repo/$repo/$arch
    7: https://md.mirrors.hacktegic.com/endeavouros/repo/$repo/$arch
    8: https://ftp.belnet.be/mirror/endeavouros/repo/$repo/$arch
    9: https://endeavour.remi.lu/repo/$repo/$arch
    10: https://fosszone.csd.auth.gr/endeavouros/repo/$repo/$arch
    11: https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch
    12: https://mirrors.gigenet.com/endeavouros/repo/$repo/$arch
    13: https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch
    14: https://mirror.moson.org/endeavouros/repo/$repo/$arch
    15: https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
    16: https://endeavouros.ip-connect.info/repo/$repo/$arch
    17: https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch
    18: https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch
    19: https://mirrors.urbanwave.co.za/endeavouros/repo/$repo/$arch
    20: https://mirror.sjtu.edu.cn/endeavouros/repo/$repo/$arch
    21: https://mirrors.jlu.edu.cn/endeavouros/repo/$repo/$arch
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirror.sahil.world/archlinux/$repo/os/$arch
    2: https://mirror.maa.albony.in/archlinux/$repo/os/$arch
    3: https://mirrors.nxtgen.com/archlinux-mirror/$repo/os/$arch
    4: https://mirror.albony.in/archlinux/$repo/os/$arch
    5: https://mirror.nag.albony.in/archlinux/$repo/os/$arch
Info:
  Memory: total: 16 GiB note: est. available: 15.18 GiB
    used: 3.6 GiB (23.7%)
  Processes: 260 Uptime: 1h 9m Shell: Zsh inxi: 3.3.35
terminalpain commented 5 months ago

Sorry if I am wrong, I am noob don't shoot me, but I was complaining about a similar issue yesterday trying to copy and paste between Brave and Discord. Turns out it was a issue with Electron apps.

Ja.KooLit OP — 17/06/2024 07:42 This was just a repost original from here ⁠[GUIDE] Electron Based Apps , B…

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

If I am wrong I apologise in advance :)

JaKooLit commented 5 months ago

fix is as per above.. thanks