View Issue Details

IDProjectCategoryView StatusLast Update
0017991ScribusOS-MacOSXpublic2026-10-01 21:02
Reporterjaca101 Assigned Tocbradney  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
PlatformMacBook Pro M1OSMacOS Tahoe 26.6.2OS Version26.6.2 (25G83)
Product Version1.7.4.svn 
Summary0017991: Starting with --prefs <dir> moves the Scribus 1.5/1.6 preference files out of the default profile
DescriptionWhen Scribus 1.7 is started with "--prefs <dir>" (a separate preferences profile), it moves the legacy preference files of Scribus 1.5/1.6 (scribus150.rc, prefs150.xml, and the other *150 files) from the default location into <dir>. They are moved, not copied: an installed Scribus 1.6.x that still uses the default location starts with default settings afterwards.

On macOS both versions share ~/Library/Preferences/Scribus/, so simply trying 1.7 with a test profile strips the settings of the user's working 1.6 installation. It happened to me while testing a 1.7 build next to Scribus 1.6.6; the files had to be moved back by hand.

Cause: PrefsManager::copyOldAppConfigAndData() migrates the legacy files with moveFile() into m_prefsLocation. Without --prefs that location is the default profile, so the move does no harm (on macOS source and target are even the same directory). With --prefs it is a different, separate profile, and the move takes the files away from the default profile.

Fix (patch attached, against trunk r27875): when a custom prefs dir is in use (ScQApp->userPrefsDir() not empty), copy the legacy files instead of moving them. Migration into the default profile is unchanged.
Steps To Reproduce1. Have Scribus 1.5/1.6 preferences in the default location, e.g. on macOS ~/Library/Preferences/Scribus/scribus150.rc and prefs150.xml.
2. Start Scribus 1.7 with: scribus --prefs /some/empty/dir
3. Quit and look at both directories.
   -> Expected: scribus150.rc and prefs150.xml are still in the default location; /some/empty/dir gets copies.
   -> Actual: they have been moved to /some/empty/dir; Scribus 1.6 now starts with default settings.
Additional InformationEnvironment: macOS 26.6 (Tahoe), Apple Silicon, Qt 6.11.2 (Homebrew), Scribus 1.7.4.svn trunk r27875, Scribus 1.6.6 also installed.

Verified with the patch applied, in a sandboxed HOME with dummy *150 files and --prefs pointing to an empty directory: the source files stay in place and the --prefs profile receives byte-identical copies (checked with cmp), from which it creates its *172 files.

The plugin data / scrapbook / swatches moves in the same function were left unchanged: their source is the prefs dir itself.

The patch was prepared with AI assistance (Claude Code) and reviewed and tested by me; it carries a Co-Authored-By trailer.
TagsNo tags attached.
Patch

Relationships

duplicate of 0017992 closedjghali Starting with --prefs <dir> moves the Scribus 1.5/1.6 preference files out of the default profile 

Activities

jaca101

2026-10-01 12:13

reporter   ~0054502

Duplicate of 0017992: this report was created without its patch because the upload was blocked by the tracker's rate limit. 0017992 has the same description with the patch attached. Please close this one.

dup. of» → 17992.

Issue History

Date Modified Username Field Change
2026-10-01 03:14 jaca101 New Issue
2026-10-01 12:13 jaca101 Note Added: 0054502
2026-10-01 19:10 cbradney Assigned To => cbradney
2026-10-01 19:10 cbradney Status new => resolved
2026-10-01 19:10 cbradney Resolution open => duplicate
2026-10-01 19:10 cbradney Relationship added duplicate of 0017992
2026-10-01 21:02 cbradney Status resolved => closed