Bug 464628

Summary: Panel size ( width / height ) keeps getting reset after plasmashell restart in Plasma 5.27 beta
Product: [Plasma] plasmashell Reporter: p d <pizzadude>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: e.insafutdinov, geraldo.simiao.kutz, niccolo.venerandi, qydwhotmail
Priority: NOR    
Version: 5.26.90   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In: 5.27
Sentry Crash Report:

Description p d 2023-01-22 03:36:49 UTC
SUMMARY
Panel size ( width / height ) keeps getting reset after plasmashell restart in Plasma 5.27 beta.
For example, after setting vertical panel width to 60, it is reset to 54 after restarting plasma.


STEPS TO REPRODUCE
1. Set plasma panel size to some random width / height
2. Restart plasmashell
3. It goes back to some width / height you didn't set.

OBSERVED RESULT

Panel sizes aren't sticking across plasmashell restarts

EXPECTED RESULT

For panel sizes to be remembered

SOFTWARE/OS VERSIONS
Fedora KDE 37 with Plasma 5.27 beta (5.26.90)

ADDITIONAL INFORMATION
Comment 1 Geraldo Simião 2023-01-22 05:41:22 UTC
I'm seeing this behavior too, but for me it doesn't go to some default height, it comes back to the size I was using when made the upgrade (38 px). So I change it to 40 or 42, and when plasma restart its goes back to 38.

#################################
Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3632QM CPU @ 2.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: Acer
Product Name: Aspire V3-571

##########################
WAYLAND info:
interface: 'wl_compositor',                              version:  5, name:  1
interface: 'zwp_tablet_manager_v2',                      version:  1, name:  3
interface: 'zwp_keyboard_shortcuts_inhibit_manager_v1',  version:  1, name:  4
interface: 'xdg_wm_base',                                version:  4, name:  6
interface: 'zwlr_layer_shell_v1',                        version:  3, name:  7
interface: 'zxdg_decoration_manager_v1',                 version:  1, name:  8
interface: 'wp_viewporter',                              version:  1, name:  9
interface: 'wp_fractional_scale_manager_v1',             version:  1, name: 10
interface: 'wl_shm',                                     version:  1, name: 11
	formats: 'XB48'(0x38344258) 'AB48'(0x38344241) 'XB30'(0x30334258) 'AB30'(0x30334241) 'XR30'(0x30335258) 'AR30'(0x30335241) XRGB8888 ARGB8888
interface: 'wl_seat',                                    version:  8, name: 12
	name: 
	capabilities: pointer keyboard touch
	keyboard repeat rate: 25
	keyboard repeat delay: 449
interface: 'zwp_pointer_gestures_v1',                    version:  3, name: 13
interface: 'zwp_pointer_constraints_v1',                 version:  1, name: 14
interface: 'zwp_relative_pointer_manager_v1',            version:  1, name: 15
interface: 'wl_data_device_manager',                     version:  3, name: 16
interface: 'zwlr_data_control_manager_v1',               version:  2, name: 17
interface: 'zwp_primary_selection_device_manager_v1',    version:  1, name: 18
interface: 'org_kde_kwin_idle',                          version:  1, name: 19
interface: 'zwp_idle_inhibit_manager_v1',                version:  1, name: 20
interface: 'ext_idle_notifier_v1',                       version:  1, name: 21
interface: 'org_kde_plasma_shell',                       version:  8, name: 22
interface: 'org_kde_kwin_appmenu_manager',               version:  1, name: 23
interface: 'org_kde_kwin_server_decoration_palette_manager', version:  1, name: 24
interface: 'org_kde_plasma_virtual_desktop_management',  version:  2, name: 26
interface: 'org_kde_kwin_shadow_manager',                version:  2, name: 28
interface: 'org_kde_kwin_dpms_manager',                  version:  1, name: 29
interface: 'org_kde_kwin_server_decoration_manager',     version:  1, name: 30
interface: 'kde_output_management_v2',                   version:  3, name: 31
interface: 'zxdg_output_manager_v1',                     version:  3, name: 32
	xdg_output_v1
		output: 49
		name: 'HDMI-A-1'
		description: 'AOC 24B1W1G5/AVRM4XA00052'
		logical_x: 1366, logical_y: 0
		logical_width: 1920, logical_height: 1080
	xdg_output_v1
		output: 48
		name: 'LVDS-1'
		description: 'LG Display LVDS-1-LP156WH2-TLA'
		logical_x: 0, logical_y: 312
		logical_width: 1366, logical_height: 768
interface: 'wl_subcompositor',                           version:  1, name: 33
interface: 'zxdg_exporter_v2',                           version:  1, name: 34
interface: 'zxdg_importer_v2',                           version:  1, name: 35
interface: 'xdg_activation_v1',                          version:  1, name: 38
interface: 'wp_content_type_manager_v1',                 version:  1, name: 40
interface: 'wp_tearing_control_manager_v1',              version:  1, name: 41
interface: 'wl_drm',                                     version:  2, name: 43
interface: 'zwp_linux_dmabuf_v1',                        version:  4, name: 44
	formats:
	'AR30'(0x30335241), modifier: 0x0100000000000002
	'AR30'(0x30335241), modifier: 0x0100000000000001
	'AR30'(0x30335241), modifier: 0x0000000000000000
	'Y412'(0x32313459), modifier: 0x0100000000000002
	'Y412'(0x32313459), modifier: 0x0100000000000001
	'Y412'(0x32313459), modifier: 0x0000000000000000
	'P010'(0x30313050), modifier: 0x0100000000000002
	'P010'(0x30313050), modifier: 0x0100000000000001
	'P010'(0x30313050), modifier: 0x0000000000000000
	'AB4H'(0x48344241), modifier: 0x0100000000000002
	'AB4H'(0x48344241), modifier: 0x0100000000000001
	'AB4H'(0x48344241), modifier: 0x0000000000000000
	'Y416'(0x36313459), modifier: 0x0100000000000002
	'Y416'(0x36313459), modifier: 0x0100000000000001
	'Y416'(0x36313459), modifier: 0x0000000000000000
	'GR88'(0x38385247), modifier: 0x0100000000000002
	'GR88'(0x38385247), modifier: 0x0100000000000001
	'GR88'(0x38385247), modifier: 0x0000000000000000
	'AYUV'(0x56555941), modifier: 0x0100000000000002
	'AYUV'(0x56555941), modifier: 0x0100000000000001
	'AYUV'(0x56555941), modifier: 0x0000000000000000
	'XB48'(0x38344258), modifier: 0x0100000000000002
	'XB48'(0x38344258), modifier: 0x0100000000000001
	'XB48'(0x38344258), modifier: 0x0000000000000000
	'Y212'(0x32313259), modifier: 0x0100000000000002
	'Y212'(0x32313259), modifier: 0x0100000000000001
	'Y212'(0x32313259), modifier: 0x0000000000000000
	'XR24'(0x34325258), modifier: 0x0100000000000002
	'XR24'(0x34325258), modifier: 0x0100000000000001
	'XR24'(0x34325258), modifier: 0x0000000000000000
	'Y216'(0x36313259), modifier: 0x0100000000000002
	'Y216'(0x36313259), modifier: 0x0100000000000001
	'Y216'(0x36313259), modifier: 0x0000000000000000
	'XR30'(0x30335258), modifier: 0x0100000000000002
	'XR30'(0x30335258), modifier: 0x0100000000000001
	'XR30'(0x30335258), modifier: 0x0000000000000000
	'XB4H'(0x48344258), modifier: 0x0100000000000002
	'XB4H'(0x48344258), modifier: 0x0100000000000001
	'XB4H'(0x48344258), modifier: 0x0000000000000000
	'R16 '(0x20363152), modifier: 0x0100000000000002
	'R16 '(0x20363152), modifier: 0x0100000000000001
	'R16 '(0x20363152), modifier: 0x0000000000000000
	'YUYV'(0x56595559), modifier: 0x0100000000000002
	'YUYV'(0x56595559), modifier: 0x0100000000000001
	'YUYV'(0x56595559), modifier: 0x0000000000000000
	'Y410'(0x30313459), modifier: 0x0100000000000002
	'Y410'(0x30313459), modifier: 0x0100000000000001
	'Y410'(0x30313459), modifier: 0x0000000000000000
	'XYUV'(0x56555958), modifier: 0x0100000000000002
	'XYUV'(0x56555958), modifier: 0x0100000000000001
	'XYUV'(0x56555958), modifier: 0x0000000000000000
	'UYVY'(0x59565955), modifier: 0x0100000000000002
	'UYVY'(0x59565955), modifier: 0x0100000000000001
	'UYVY'(0x59565955), modifier: 0x0000000000000000
	'AB24'(0x34324241), modifier: 0x0100000000000002
	'AB24'(0x34324241), modifier: 0x0100000000000001
	'AB24'(0x34324241), modifier: 0x0000000000000000
	'GR32'(0x32335247), modifier: 0x0100000000000002
	'GR32'(0x32335247), modifier: 0x0100000000000001
	'GR32'(0x32335247), modifier: 0x0000000000000000
	'P012'(0x32313050), modifier: 0x0100000000000002
	'P012'(0x32313050), modifier: 0x0100000000000001
	'P012'(0x32313050), modifier: 0x0000000000000000
	'R8  '(0x20203852), modifier: 0x0100000000000002
	'R8  '(0x20203852), modifier: 0x0100000000000001
	'R8  '(0x20203852), modifier: 0x0000000000000000
	'Y210'(0x30313259), modifier: 0x0100000000000002
	'Y210'(0x30313259), modifier: 0x0100000000000001
	'Y210'(0x30313259), modifier: 0x0000000000000000
	'P016'(0x36313050), modifier: 0x0100000000000002
	'P016'(0x36313050), modifier: 0x0100000000000001
	'P016'(0x36313050), modifier: 0x0000000000000000
	'AB30'(0x30334241), modifier: 0x0100000000000002
	'AB30'(0x30334241), modifier: 0x0100000000000001
	'AB30'(0x30334241), modifier: 0x0000000000000000
	'AB48'(0x38344241), modifier: 0x0100000000000002
	'AB48'(0x38344241), modifier: 0x0100000000000001
	'AB48'(0x38344241), modifier: 0x0000000000000000
	'AR24'(0x34325241), modifier: 0x0100000000000002
	'AR24'(0x34325241), modifier: 0x0100000000000001
	'AR24'(0x34325241), modifier: 0x0000000000000000
	'AR15'(0x35315241), modifier: 0x0100000000000002
	'AR15'(0x35315241), modifier: 0x0100000000000001
	'AR15'(0x35315241), modifier: 0x0000000000000000
	'XB24'(0x34324258), modifier: 0x0100000000000002
	'XB24'(0x34324258), modifier: 0x0100000000000001
	'XB24'(0x34324258), modifier: 0x0000000000000000
	'RG16'(0x36314752), modifier: 0x0100000000000002
	'RG16'(0x36314752), modifier: 0x0100000000000001
	'RG16'(0x36314752), modifier: 0x0000000000000000
interface: 'kde_output_device_v2',                       version:  2, name: 46
interface: 'kde_output_device_v2',                       version:  2, name: 47
interface: 'wl_output',                                  version:  4, name: 48
	x: 0, y: 312, scale: 1,
	physical_width: 340 mm, physical_height: 190 mm,
	make: 'LG Display', model: 'LVDS-1-LP156WH2-TLA',
	subpixel_orientation: horizontal rgb, output_transform: normal,
	mode:
		width: 1366 px, height: 768 px, refresh: 59.973 Hz,
		flags: current
interface: 'wl_output',                                  version:  4, name: 49
	x: 1366, y: 0, scale: 1,
	physical_width: 530 mm, physical_height: 300 mm,
	make: 'AOC', model: '24B1W1G5/AVRM4XA00052',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 1920 px, height: 1080 px, refresh: 60.000 Hz,
		flags: current
interface: 'wp_drm_lease_device_v1',                     version:  1, name: 50
interface: 'kde_output_order_v1',                        version:  1, name: 51
interface: 'zwp_text_input_manager_v1',                  version:  1, name: 52
interface: 'zwp_text_input_manager_v2',                  version:  1, name: 53
interface: 'zwp_text_input_manager_v3',                  version:  1, name: 54
interface: 'org_kde_kwin_contrast_manager',              version:  2, name: 56
interface: 'org_kde_kwin_blur_manager',                  version:  1, name: 57
interface: 'org_kde_kwin_slide_manager',                 version:  1, name: 58
Comment 2 Fushan Wen 2023-01-23 01:36:33 UTC
Could anyone provide ~/.config/plasmashellrc
Comment 3 Fushan Wen 2023-01-24 03:08:25 UTC
The file is provided. Thanks for testing!
Comment 4 Fushan Wen 2023-01-24 03:43:45 UTC
Git commit dc821939dab429cbbdc37bdbbc97bc9e085d447c by Fushan Wen.
Committed on 24/01/2023 at 03:43.
Pushed by fusionfuture into branch 'master'.

shell/kconf_update: remove redundant File and Group properties

The two files are used to merge config changes, which are redundant and
will potential cause merge conflicts when the update binary already
modifies the config file.
FIXED-IN: 5.27

M  +0    -2    shell/kconf_update/plasmashell-5.27-use-panel-thickness-in-default-group.upd

https://invent.kde.org/plasma/plasma-workspace/commit/dc821939dab429cbbdc37bdbbc97bc9e085d447c
Comment 5 Fushan Wen 2023-01-24 03:45:28 UTC
Git commit b583010154cd8554e3a46d566af5dbf061491e7d by Fushan Wen.
Committed on 24/01/2023 at 03:44.
Pushed by fusionfuture into branch 'Plasma/5.27'.

shell/kconf_update: remove redundant File and Group properties

The two files are used to merge config changes, which are redundant and
will potential cause merge conflicts when the update binary already
modifies the config file.
FIXED-IN: 5.27
(cherry picked from commit dc821939dab429cbbdc37bdbbc97bc9e085d447c)

M  +0    -2    shell/kconf_update/plasmashell-5.27-use-panel-thickness-in-default-group.upd

https://invent.kde.org/plasma/plasma-workspace/commit/b583010154cd8554e3a46d566af5dbf061491e7d
Comment 6 Fushan Wen 2023-01-24 03:55:09 UTC
Git commit e6c45c0ebab3db0a2bb7acc65139e77c59a25fbd by Fushan Wen.
Committed on 24/01/2023 at 03:54.
Pushed by fusionfuture into branch 'master'.

shell/kconf_update: sync config on exit

M  +2    -0    shell/kconf_update/plasmashell-5.27-use-panel-thickness-in-default-group.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/e6c45c0ebab3db0a2bb7acc65139e77c59a25fbd
Comment 7 Fushan Wen 2023-01-24 03:55:37 UTC
Git commit edb36a688c4c216a215b1d26215c8ff4961f31a9 by Fushan Wen.
Committed on 24/01/2023 at 03:55.
Pushed by fusionfuture into branch 'Plasma/5.27'.

shell/kconf_update: sync config on exit


(cherry picked from commit e6c45c0ebab3db0a2bb7acc65139e77c59a25fbd)

M  +2    -0    shell/kconf_update/plasmashell-5.27-use-panel-thickness-in-default-group.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/edb36a688c4c216a215b1d26215c8ff4961f31a9
Comment 8 Bug Janitor Service 2023-01-25 05:01:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfig/-/merge_requests/168
Comment 9 Fushan Wen 2023-02-09 12:06:02 UTC
Git commit 9a59b7e185ea3d877a000a52153a2e0accaae471 by Fushan Wen.
Committed on 09/02/2023 at 12:05.
Pushed by fusionfuture into branch 'master'.

shell: read thickness from default group

Due to usrmerge some distros can't run kconf_update_bin.
Related: bug 465125

M  +1    -1    shell/panelview.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/9a59b7e185ea3d877a000a52153a2e0accaae471
Comment 10 Fushan Wen 2023-02-09 12:13:30 UTC
*** Bug 465125 has been marked as a duplicate of this bug. ***
Comment 11 Fushan Wen 2023-02-15 01:20:35 UTC
Git commit 8631d249baee3f0a0597e2f2195f92880e65df33 by Fushan Wen.
Committed on 15/02/2023 at 01:20.
Pushed by fusionfuture into branch 'cherry-pick-9a59b7e1'.

shell: read thickness from default group

Due to usrmerge some distros can't run kconf_update_bin.
Related: bug 465125


(cherry picked from commit 9a59b7e185ea3d877a000a52153a2e0accaae471)

M  +1    -1    shell/panelview.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/8631d249baee3f0a0597e2f2195f92880e65df33
Comment 12 Bug Janitor Service 2023-02-15 01:20:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2622