Bug 431267 - Okular always starts in maximized state
Summary: Okular always starts in maximized state
Status: RESOLVED DUPLICATE of bug 426813
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-07 15:57 UTC by Till Schäfer
Modified: 2021-01-07 20:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
okularrc causing the issue (1.30 KB, text/plain)
2021-01-07 15:57 UTC, Till Schäfer
Details
Video that shows the issue and "fix" (Konsole instead of Okular but it doesn't matter) (881.27 KB, video/mp4)
2021-01-07 18:10 UTC, Alexander Ewering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2021-01-07 15:57:58 UTC
Created attachment 134641 [details]
okularrc causing the issue

SUMMARY
Okular always starts in maximized state with the attached okularrc. 

STEPS TO REPRODUCE
1. place attached okularrc in ~/.config
2. start okular
3. make okular not to be maximized
4. close okular 
5. start okular


OBSERVED RESULT
Okular starts in maximized state.

EXPECTED RESULT
Okular starts in not maximized state.
Comment 1 Till Schäfer 2021-01-07 15:58:37 UTC
Operating System: Gentoo Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.9.14-gentoo
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 30.9 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000
Comment 2 Till Schäfer 2021-01-07 16:00:53 UTC
I do not know if this bus is special to okular or a more general issue of the system behind systemsettings "Window Behavior->Advanced->Allow apps to remember the position ...". Thus, please reassign if necessary.
Comment 3 Alexander Ewering 2021-01-07 18:04:18 UTC
This bug affects at least the following KDE apps / components:

konsole dolphin systemsettings okular gwenview kolourpaint kwrite kdialog

I'm still on 5.19.4 on my main system and the "Allow apps to remember window position" option isn't available in 5.19. However, I also have a 5.20 system for testing, and even after disabling that option, the problem still persists (a KDE window that has been maximized at any point in the past will always start maximized in the future regardless of "Apply initially" geometry rules -- verified at least for konsole on current Manjaro)
Comment 4 Alexander Ewering 2021-01-07 18:05:14 UTC
I'm using the following shell script, run once per minute from Cron, to fix the problem:

cd /home/intrr/.config
sed -i 's/^Window-Maximized.*true//' konsolerc dolphinrc systemsettingsrc okularrc gwenviewrc kolourpaintrc kwriterc kdialogrc
Comment 5 Alexander Ewering 2021-01-07 18:10:29 UTC
Created attachment 134642 [details]
Video that shows the issue and "fix" (Konsole instead of Okular but it doesn't matter)

Video that shows the issue and "fix" (Konsole instead of Okular but it doesn't matter)
Comment 6 Christoph Feck 2021-01-07 20:57:21 UTC

*** This bug has been marked as a duplicate of bug 426813 ***