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

Starting vscode clears *system* settings from ~/.Xmodmap #177010

Closed
sjmduncan opened this issue Mar 13, 2023 · 3 comments
Closed

Starting vscode clears *system* settings from ~/.Xmodmap #177010

sjmduncan opened this issue Mar 13, 2023 · 3 comments
Assignees
Labels
info-needed Issue requires more information from poster linux Issues with VS Code on Linux

Comments

@sjmduncan
Copy link

sjmduncan commented Mar 13, 2023

  • VS Code Version: 1.76.1 (installed via snap)
  • OS Version: Xubuntu 22.04

Steps to Reproduce:

  1. Fresh installation of Xubuntu 22.04
  2. Remap some keys by adding ~/.Xmodmap (i.e. like this)
  3. Fresh installation vscode using this command: snap install code --classic, or by downloading the .deb file and using sudo dpkg -i. Don't install extensions. Don't change any settings (except maybe keyboard.dispatch). Don't sign in.
  4. Remapped keys work until you start vscode, whereupon the remapped keys are reset back to their default keycodes for the whole system

I don't think this is the same as #23991 or other xmodmap/keymap issues because:

  • I have setxkbmap -option 'caps:ctrl_modifier' in ~/.profile and this remapping is not cleared, it's just the ones defined in ~/.Xmodmap
  • Setting "keyboard.dispatch": "keyCode" does not change anything (i.e. the keymap/troubleshooting wiki page doesn't have an answer)
  • My remapped keys are cleared at a system level
  • I can reinstate my keymap by running xmodmap ~/.Xmodmap and it works fine until I start vscode again (either restart existing instance or start another one)

I have two questions:

  1. What does vscode think it's doing, messing with the users global keymap in the first place?
  2. How do I stop it from doing this?
@sandy081 sandy081 assigned deepak1556 and unassigned sandy081 Mar 14, 2023
@deepak1556 deepak1556 added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux confirmation-pending labels Jun 2, 2023
@deepak1556
Copy link
Collaborator

Please share a sample Xmodmap file that helps demonstrate the issue and also commands for how you are validating the keycodes are reset at the system level. Additionally, a recording would help us better to understand the issue.

/gifPlease

@deepak1556 deepak1556 added info-needed Issue requires more information from poster and removed bug Issue identified by VS Code Team member as probable bug confirmation-pending labels Dec 15, 2023
@vscodenpa
Copy link

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

@vscodenpa
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests

5 participants