Skip to content

Instantly share code, notes, and snippets.

@Ribeiro-Tiago
Last active March 13, 2026 19:54
Show Gist options
  • Select an option

  • Save Ribeiro-Tiago/024a445f6b804ad3450387a32063d0f3 to your computer and use it in GitHub Desktop.

Select an option

Save Ribeiro-Tiago/024a445f6b804ad3450387a32063d0f3 to your computer and use it in GitHub Desktop.
Fedora fixes

runlevel command not found

sudo nano /usr/local/bin/runlevel

#!/bin/bash
if systemctl get-default | grep -q graphical; then
  echo "N 5"
else
  echo "N 3"
fi

Enfore apps to use xdg-open instead of kde-open

sudo nano /usr/local/bin/kde-open

#!/bin/bash
xdg-open "$@"

sudo chmod +x /usr/local/bin/kde-open

Fix for kde-open crash when opened through sandboxed apps

sudo mv /usr/bin/kde-open /usr/bin/kde-open.real

sudo tee /usr/bin/kde-open <<'EOF'
#!/bin/bash
QT_QPA_PLATFORM=wayland /usr/bin/kde-open.real "$@"
EOF

sudo chmod +x /usr/bin/kde-open

Deadkeys not being recognized in apps

Run apps with --ozone-platform=x11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment