aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-screenshot/main.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-02 20:54:13 +0000
committerWeblate <noreply@weblate.org>2017-08-02 20:54:13 +0000
commite368f8d99895fdc85fc9b39b7cc223b331c91dd4 (patch)
treeac9ca74c99caf05639f595a23ee25a478eb83e80 /src-qt5/desktop-utils/lumina-screenshot/main.cpp
parentTranslated using Weblate (Spanish) (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-e368f8d99895fdc85fc9b39b7cc223b331c91dd4.tar.gz
lumina-e368f8d99895fdc85fc9b39b7cc223b331c91dd4.tar.bz2
lumina-e368f8d99895fdc85fc9b39b7cc223b331c91dd4.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/main.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/main.cpp b/src-qt5/desktop-utils/lumina-screenshot/main.cpp
index c1d178a2..e49599bf 100644
--- a/src-qt5/desktop-utils/lumina-screenshot/main.cpp
+++ b/src-qt5/desktop-utils/lumina-screenshot/main.cpp
@@ -11,10 +11,11 @@
int main(int argc, char ** argv)
{
+ LTHEME::LoadCustomEnvSettings();
//Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements)
unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR");
- LTHEME::LoadCustomEnvSettings();
LSingleApplication a(argc, argv, "l-screenshot");
+ if(!a.isPrimaryProcess()){ return 0; }
//LuminaThemeEngine theme(&a);
a.setApplicationName("Take Screenshot");
bgstack15