pop-os / gnome-shell

Pop!_OS fork of https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-shell
GNU General Public License v2.0
25 stars 4 forks source link

A keybinding set to open an app, when long pressed, opens too many instances of the app to crash the PC immediately. #101

Open Mesum-Hussain opened 2 years ago

Mesum-Hussain commented 2 years ago

(1) Issue/Bug Description: If we set a keybinding to open an app and press and hold it for a few seconds, it opens too many instances of the app and the PC becomes immediately unresponsive and crashes.

(2) Steps to reproduce (if you know): Set a custom keybinding for an app (checked with VS Code), and then press and hold the keybinding for about 5 to 10 seconds.

(3) Expected behavior: A single press of a keybinding should open only one instance of the app no matter how long the keys are kept pressed.

(4) Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

(5) Gnome Shell version: 42

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

pop-shell:
  Installed: 1.1.0~1649099191~22.04~cb76a4c
  Candidate: 1.1.0~1649099191~22.04~cb76a4c
  Version table:
 *** 1.1.0~1649099191~22.04~cb76a4c 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1001 http://apt.pop-os.org/release jammy/main i386 Packages
        100 /var/lib/dpkg/status

(7) Where was Pop Shell installed from: Came preinstalled on Pop OS 22.04.

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc): 1920x1080

(9) Other Installed/Enabled Extensions:

(10) Other Notes:

n3m0-22 commented 2 years ago

I can confirm this. I tested with VS Code and Virtualbox. If the custom shortcut is pressed and released quickly it's fine, but anything longer, in my case just a second or two, it keeps launching the app. I tried this with several different 2 and 3 key combinations with the same result each time.

https://user-images.githubusercontent.com/11048214/166059978-d6791297-d2ef-46d3-9767-9edd5e967f66.mp4

https://user-images.githubusercontent.com/11048214/166059988-06cc9431-a3e1-40a5-ba65-35c5427b4077.mp4