Last active
April 4, 2023 18:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=UMR GUI | |
Comment=User Mode Register GUI for AMDGPU | |
Exec=/usr/local/bin/umrdesktop.sh | |
Terminal=false | |
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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