From d50a27cb4c8a9134ee5b0cd823ffa0e70fa07845 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 10 Sep 2016 13:57:38 +0200 Subject: [PATCH] [data] add manjaro files --- data/49-nopasswd-calamares.rules | 8 ++ data/calamares.desktop | 12 ++ data/calamares_polkit | 6 + data/manjaro-icon.svg | 224 +++++++++++++++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 data/49-nopasswd-calamares.rules create mode 100755 data/calamares.desktop create mode 100644 data/calamares_polkit create mode 100644 data/manjaro-icon.svg diff --git a/data/49-nopasswd-calamares.rules b/data/49-nopasswd-calamares.rules new file mode 100644 index 000000000..c152890aa --- /dev/null +++ b/data/49-nopasswd-calamares.rules @@ -0,0 +1,8 @@ +/* Allow Calamares to be started without password authentication + */ +polkit.addRule(function(action, subject) { + if ((action.id == "com.github.calamares.calamares.pkexec.run")) + { + return polkit.Result.YES; + } +}); diff --git a/data/calamares.desktop b/data/calamares.desktop new file mode 100755 index 000000000..9d67cce5d --- /dev/null +++ b/data/calamares.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Install Manjaro Linux (Calamares) +GenericName=Live Installer (Calamares) +Comment=Install the operating system to disk +Exec=/usr/bin/calamares_polkit %f +Icon=calamares +Terminal=false +StartupNotify=true +Type=Application +Categories=Qt;System; diff --git a/data/calamares_polkit b/data/calamares_polkit new file mode 100644 index 000000000..9bce0f82f --- /dev/null +++ b/data/calamares_polkit @@ -0,0 +1,6 @@ +#!/bin/bash +if [ $(which pkexec) ]; then + pkexec --disable-internal-agent "/usr/bin/calamares" "$@" +else + /usr/bin/calamares "$@" +fi diff --git a/data/manjaro-icon.svg b/data/manjaro-icon.svg new file mode 100644 index 000000000..a8c6e2159 --- /dev/null +++ b/data/manjaro-icon.svg @@ -0,0 +1,224 @@ + + + + + + + + image/svg+xml + + + + + + + + +