Skip to content

Instantly share code, notes, and snippets.

@NightFeather
Last active April 4, 2023 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NightFeather/6ae11e5499f25821b1a41b685877cad1 to your computer and use it in GitHub Desktop.
Save NightFeather/6ae11e5499f25821b1a41b685877cad1 to your computer and use it in GitHub Desktop.
just some files helps me starting umr with proper permission seperation through polkit
[Desktop Entry]
Name=UMR GUI
Comment=User Mode Register GUI for AMDGPU
Exec=/usr/local/bin/umrdesktop.sh
Terminal=false
Type=Application
#!/bin/bash
if [[ $UID -eq 0 ]]; then
echo "You should not run this script as root."
echo "It will request root privillege when needed."
exit 1
fi
pkexec umr --server tcp://127.0.0.1:9123 &
server_pid=$!
umr --gui tcp://127.0.0.1:9123
kill $server_pid
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment