Open nick-shmyrev opened 1 year ago
Moving this discussion into a separate issue. For reference, here's what has been tried so far:
A few ideas of what might've gone wrong:
I noticed when I'm tinkering with an extension in a VM, Gnome would sometimes disable user extensions due to some errors. Could it be the case for you too? You can run gsettings set org.gnome.shell disable-user-extensions false in terminal to re-enable user extensions. Also, I believe I've got it running even without this, but just in case, make sure you remove the regular user version, installed under ~/.local/share/gnome-shell/extensions, then reboot/relog. Perhaps bumping up the version in metadata.json might fix the issue for you?
Finally, as a last resort, here's a script that hopefully would go through the whole installation process for you. Full disclosure: I only wrote the pseudocode for it, fed that to ChatGPT, then tweaked a few lines here and there. It did work in a Fedora 37 VM, but I'd be extra careful using it on a live device.
#!/bin/bash
zip_filename="improvedosk@nick-shmyrev.dev.shell-extension.zip"
if [ ! -f "$zip_filename" ]; then echo "$zip_filename file not found, exiting..." exit fi
sudo unzip -o "$zip_filename" -d /usr/share/gnome-shell/extensions/improvedosk@nick-shmyrev.dev/
if [ ! -f /etc/dconf/profile/user ]; then
sudo touch /etc/dconf/profile/user
fi
if ! grep -q "^user-db:user$" /etc/dconf/profile/user; then
echo "user-db:user" | sudo tee -a /etc/dconf/profile/user > /dev/null
fi
if ! grep -q "^system-db:local$" /etc/dconf/profile/user; then
echo "system-db:local" | sudo tee -a /etc/dconf/profile/user > /dev/null
fi
if [ ! -f /etc/dconf/db/local.d/00-extensions ]; then
sudo touch /etc/dconf/db/local.d/00-extensions
# Add "[org/gnome/shell]" line to the top of the file
echo "[org/gnome/shell]" | sudo tee /etc/dconf/db/local.d/00-extensions > /dev/null
fi
if grep -q "enabled-extensions=[" "/etc/dconf/db/local.d/00-extensions"; then
# add it to the line starting with enabled-extensions=[ right after enabled-extensions=[
sudo sed -i '/enabled-extensions=\[/ s/\]/, \x27improvedosk@nick-shmyrev.dev\x27\]/' /etc/dconf/db/local.d/00-extensions
else
echo "enabled-extensions=['improvedosk@nick-shmyrev.dev']" | sudo tee --append /etc/dconf/db/local.d/00-extensions > /dev/null
fi
sudo dconf update
echo "$zip_filename installed as a system-wide extension. Please reboot to apply changes."
>
> Another thing worth trying is enabling "Screen Keyboard" in Accessibility Options in upper right corner on Login screen.
Now it's installed! Thank you, but it still doesn't work on GDM... I also tried activating the osk in the accessibility menu but I just get the normal OSK from GNOME.
@PhilDevProg Great, so we're making some progress :+1: Does it show up in the list of installed extensions (run gnome-extensions list
in terminal to check)? Does it work in user session? Also, just as a sanity check, can you pull the latest version of this repo's master
branch and rebuild the package before installing it?
Now it's installed! Thank you, but it still doesn't work on GDM... I also tried activating the osk in the accessibility menu but I just get the normal OSK from GNOME.
@PhilDevProg Great, so we're making some progress :+1: Does it show up in the list of installed extensions (run
gnome-extensions list
in terminal to check)? Does it work in user session? Also, just as a sanity check, can you pull the latest version of this repo'smaster
branch and rebuild the package before installing it?
It shows up in the Extensions app and in the output of the command and works in the user session. It also is already built via the newest version in master.
I'm using the German layout (DE) which works perfectly in the user session with the extended keys showing up...
Hmm, that doesn't work for me... The extension doesn't even show up in the Extensions app... Does it work for you?
Originally posted by @PhilDevProg in https://github.com/nick-shmyrev/improved-osk-gnome-ext/issues/39#issuecomment-1474824008