Commit ec7920d6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

flatpak: follow the umask recommended by flatpak upstream

See https://github.com/flatpak/flatpak/pull/2856

BUG: 407115
parent b2a35f5a
......@@ -59,6 +59,8 @@
#include <glib.h>
#include <QRegularExpression>
#include <sys/stat.h>
DISCOVER_BACKEND_PLUGIN(FlatpakBackend)
QDebug operator<<(QDebug debug, const FlatpakResource::Id& id)
......@@ -106,6 +108,15 @@ FlatpakBackend::FlatpakBackend(QObject* parent)
}
connect(m_reviews.data(), &OdrsReviewsBackend::ratingsReady, this, &FlatpakBackend::announceRatingsReady);
/* Override the umask to 022 to make it possible to share files between
* the plasma-discover process and flatpak system helper process.
* Ideally this should be set when needed in the flatpak plugin, but
* umask is thread-unsafe so there is really no local way to fix this.
*
* See https://github.com/flatpak/flatpak/pull/2856/
*/
umask(022);
}
FlatpakBackend::~FlatpakBackend()
......
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