Bug 399731

Summary: Symlink layout file not supported
Product: [Plasma] lattedock Reporter: Peifeng Yu <pfyu817>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Peifeng Yu 2018-10-12 17:30:47 UTC
SUMMARY
The layout config file in $HOME/.config/latte/*.layout.latte can't be a symlink. It will be skipped in layout manager when loading layouts.

I use git repo to manage my config files including the latte layout. In previous version (probably 0.7.x), this works. But now I can't use symlinks anymore, which is inconvenient.

STEPS TO REPRODUCE
1. Create a new layout or use the default one
2. Move the layout file to somewhere else and use a symlink to point to new location

OBSERVED RESULT
The layout won't be loaded, and disappears in settings


EXPECTED RESULT
The layout show up as normal


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14
KDE Frameworks Version: 5.50
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2018-10-12 18:13:51 UTC
It was never intended to support symlinks...
Comment 2 Peifeng Yu 2018-10-17 17:21:23 UTC
Please view this as a feature request then.

Is there any consideration that symlinks are not supported?
Comment 3 Michail Vourlakos 2018-10-17 18:31:42 UTC
(In reply to Aetf from comment #2)
> Please view this as a feature request then.
> 
> Is there any consideration that symlinks are not supported?

yes, complexity... Layout files are used for some features e.g. the Locked/Unlocked layouts. Based on if the file is read-only or not the layout is considered locked or not... There are multiple places in the code e.g. layout uniqueness, renaming etc... that symlinks would introduce a level on uncertainty and complexity.

So I being the only developer/maintainer of Latte for now would not like to mess with this.