View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0017991 | Scribus | OS-MacOSX | public | 2026-10-01 03:14 | 2026-10-01 21:02 |
| Reporter | jaca101 | Assigned To | cbradney | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Platform | MacBook Pro M1 | OS | MacOS Tahoe 26.6.2 | OS Version | 26.6.2 (25G83) |
| Product Version | 1.7.4.svn | ||||
| Summary | 0017991: Starting with --prefs <dir> moves the Scribus 1.5/1.6 preference files out of the default profile | ||||
| Description | When 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 Reproduce | 1. 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 Information | Environment: 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. | ||||
| Tags | No tags attached. | ||||
| Patch | |||||
| 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 |