change default folder for Processing outputs to $HOME/processing to make

it more visible and accessible
This commit is contained in:
Alexander Bruy 2025-09-29 13:39:00 +01:00 committed by Nyall Dawson
parent e6746493b9
commit 43ae0b6706
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def userFolder():
def defaultOutputFolder():
folder = os.path.join(userFolder(), "outputs")
folder = os.path.join(QDir.homePath(), "processing")
if not QDir(folder).exists():
QDir().mkpath(folder)

View File

@ -176,7 +176,7 @@ QVariant QgsProcessingLayerOutputDestinationWidget::value() const
if ( folder == '.' )
{
// output name does not include a folder - use default
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing/outputs" ).arg( QgsApplication::qgisSettingsDirPath() ) ).toString();
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing" ).arg( QDir : homePath() ) ).toString();
key = QDir( defaultFolder ).filePath( key );
}
}