Commit 46a84d07 authored by Mike Salmela's avatar Mike Salmela

[nemo-systemsettings] Set group permissions when formating memory card. Fixes JB#50288

parent ad509380
......@@ -12,6 +12,7 @@ Requires: mce >= 1.83.0
Requires: libsailfishkeyprovider >= 0.0.14
Requires: connman-qt5 >= 1.2.21
Requires: user-managerd >= 0.4.0
Requires: udisks2 >= 2.8.1+git6
Requires(post): coreutils
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5SystemInfo)
......@@ -175,6 +175,8 @@ void PartitionModel::format(const QString &devicePath, const QVariantMap &argume
args.insert(QLatin1String("label"), arguments.value(QLatin1String("label"), QString()).toString());
args.insert(QLatin1String("no-block"), true);
args.insert(QLatin1String("take-ownership"), true);
// set-group-permissions is a custom option patched into udisks2 (JB#50288)
args.insert(QLatin1String("set-group-permissions"), true);
args.insert(QLatin1String("update-partition-type"), true);
args.insert(QLatin1String("auto-mount"), arguments.value(QLatin1String("auto-mount"), false).toBool());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment