mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-22 12:35:01 +02:00

Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run
11 lines
326 B
Bash
Executable File
11 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if pkexec exists and is executable
|
|
if command -v pkexec &>/dev/null; then
|
|
# Use pkexec to run calamares with administrative privileges
|
|
pkexec --disable-internal-agent /usr/bin/calamares "$@"
|
|
else
|
|
# Fallback to running calamares without administrative privileges
|
|
/usr/bin/calamares "$@"
|
|
fi
|