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

Add check in install script to ensure display is X11 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieldmiller
Copy link

Things like ctrl+c in terminal don't work in Wayland. This adds a check in install.sh to first ensure the installer is not on Wayland.

From the Wayland docs, we can check the $WAYLAND_DISPLAY variable to see if Wayland is being used.

Testing

On a fresh Ubuntu install (defaulted as Wayland):

daniel@daniel-MacBookPro:~/gnome-macos-remap$ echo $WAYLAND_DISPLAY
wayland-0

daniel@daniel-MacBookPro:~/gnome-macos-remap$ ./install.sh 
Please switch to X11. Wayland is not supported.
daniel@daniel-MacBookPro:~/gnome-macos-remap$ 

After switching to X11

daniel@daniel-MacBookPro:~/gnome-macos-remap$ echo $WAYLAND_DISPLAY


daniel@daniel-MacBookPro:~/gnome-macos-remap$ ./install.sh 
Copying AutoKey Phrases...
Please select your "Command+Backspace" functionality.
1) Nautilus - Delete resource
2) Text editing - Delete line
Answer 1 or 2: 2
rm: cannot remove '/home/daniel/.config/autokey/data/gnome-macos-phrases/nautilus-delete.json': No such file or directory
Flipping Super and Control keys...
Changing default GNOME keybindings...
Detected GNOME version 42

Almost there! Please do following:
1. Open 'autokey-gtk'. Go to Edit -> Preferences.
   Select 'Automatically start AutoKey at login'.
2. Restart your computer.
3. On the login screen click the gear icon on the bottom right.
   Select 'GNOME on Xorg'. Login.
4. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant