diff --git a/src/SpectacleCore.cpp b/SpectacleCore.cpp --- a/src/SpectacleCore.cpp +++ b/SpectacleCore.cpp @@ -253,11 +253,13 @@ case StartMode::Background: case StartMode::DBus: { + auto copyToClipboard = mCopyToClipboard || Settings::copyImageToClipboard(); + if (mNotify) { connect(lExportManager, &ExportManager::imageSaved, this, &SpectacleCore::doNotify); } - if (mCopyToClipboard) { + if (copyToClipboard) { lExportManager->doCopyToClipboard(mNotify); } else { QUrl lSavePath = (mStartMode == StartMode::Background && mFileNameUrl.isValid() && mFileNameUrl.isLocalFile()) ? @@ -267,7 +269,7 @@ // if we notify, we emit allDone only if the user either dismissed the notification or pressed // the "Open" button, otherwise the app closes before it can react to it. - if (!mNotify && mCopyToClipboard) { + if (!mNotify && copyToClipboard) { // Allow some time for clipboard content to transfer if '--nonotify' is used, see Bug #411263 // TODO: Find better solution QTimer::singleShot(250, this, &SpectacleCore::allDone);