Bug 399731 - Symlink layout file not supported
Summary: Symlink layout file not supported
Status: RESOLVED INTENTIONAL
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-12 17:30 UTC by Peifeng Yu
Modified: 2018-10-23 17:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.