Bug 457806 - Invalid display definition in [MainWindow] section of kmymoneyrc file on Windows
Summary: Invalid display definition in [MainWindow] section of kmymoneyrc file on Windows
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks: 426400
  Show dependency treegraph
 
Reported: 2022-08-12 15:24 UTC by Ralf Habacker
Modified: 2022-08-15 14:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch (1.23 KB, patch)
2022-08-15 14:33 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2022-08-12 15:24:55 UTC
SUMMARY
The binary version of KMymoney for Windows stores invalid display values in the named section of the configuration file, preventing application position and size recovery when screen configurations change.

STEPS TO REPRODUCE
1. download the portable package for Windows from https://binary-factory.kde.org/view/Windows%2064-bit/job/KMyMoney_Release_win64/.
2. Extract 7z file
3. change to the bin directory and start 'kmymoney
4. close kmymoney
5. inspect the file "%USERPROFILE%\Local settings\Application data\kmymoney\kmymoneyrc".

RESULT FOUND
The "MainWindow" section contains invalid display definitions as shown below. Instead of a keyword for the monitor, '\s' is included at the beginning of the entries.

[MainWindow]
\s height 1920x1080=316
\s width 1920x1080=1147
\s XPosition 1920x1080=2560
\s YPosition 1920x1080=282
State=AAAA/wAAAAD9AAAAAABHsAAADmAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAAAEAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA
ToolBarsMovable=Disabled

EXPECTED RESULT
'\s' should be replaced with a string identifying the associated screen, e.g. "HDMI-0 DVI-I-1" as shown below for a Linux host.

[MainWindow]
HDMI-0 DVI-I-1 DVI-D-0 Height 1080=573
HDMI-0 DVI-I-1 DVI-D-0 width 1920=705
HDMI-0 DVI-I-1 DVI-D-0 Window maximization 1080x1920=true
HDMI-0 DVI-I-1 DVI-D-0 XPosition=1920
HDMI-0 DVI-I-1 DVI-D-0 YPosition=29

SOFTWARE/OS-VERSIONS
Windows: 10
KDE frameworks version: 5.96.0
Qt version: 5.15.5
Comment 1 Ralf Habacker 2022-08-15 14:33:49 UTC
Created attachment 151338 [details]
patch

As mentioned at https://bugs.kde.org/show_bug.cgi?id=429943#c8 does the associated patch (see https://bugs.kde.org/show_bug.cgi?id=429943#c6) did not solve the issue and the underlaying issue is solved in Qt 6.2.  Therefore the appended patch is used for mingw builds of kmymoney.