Bug 448244 - [feature] - symlink config for managing as dotfiles.
Summary: [feature] - symlink config for managing as dotfiles.
Status: REPORTED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.10.6
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-11 03:11 UTC by John
Modified: 2022-01-11 07:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John 2022-01-11 03:11:34 UTC
SUMMARY
***

Hi there - This may not be a bug, but wanted to report anyway. I've got latte set up how I want and would like to manage the config as dotfiles so I can reconfigure easily after a reinstall. I'm currently using dotbot (https://github.com/anishathalye/dotbot) solution. This centralises all the config files and symlinks them over to the original locations - allowing for easier version control. 

Most work fine, however latte doesn't seem to like it. If i symlink
~/.config/lattedockrc
~/.config/latte/My Layout.layout.latte

Then latte seems to open with all config set to default and the default layout (as it if couldn't read lattedockrc). 
If I copy the files back to the original location then all works fine. 

Is there a way to make latte compatible with config symlinked elsewhere - so that it can be managed under version control? Or maybe I'm doing something wrong. 

STEPS TO REPRODUCE
1. Fresh install of Manjaro
2. mkdir ~/.dotfiles
3. Setup dotbot https://github.com/anishathalye/dotbot in ~/.dotfiles
4. Create a sample layout ( in my instance My Layout). 
5. Switch to that layout in latte settings
6. Copy ~/.config/lattedockrc to .dotfiles/config/lattedockrc
7. Copy ~/.config/latte/My Layout.layout.latte to ~/.dotfiles/config/latte/My Layout.layout.latte
8. Create file install.conf.yaml in ~/.dotfiles with following

```
- defaults:
    link:
      relink: true

- create:
    - ~/.config/latte

- link:
    ~/.config/lattedockrc:
      path: config/lattedockrc
      force: true
    ~/.config/latte/My Layout.layout.latte:
      path: config/latte/My Layout.layout.latte
      force: true
```
9.  run ~/.dotfiles/install

OBSERVED RESULT
Symlinks created, however on reboot it seems to go back to default settings (seems not to read lattedockrc file via symlink??). Any changes are reset next reboot. 

EXPECTED RESULT
All settings remain as is with my custom layout. Any changes are saved in ~/.dotfiles/config/lattedockrc or layout file for version control. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro linux - 5.15.12
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2022-01-11 07:15:00 UTC
sorry this is of plasma framework responsibility... If Plasma supports it for its configuration file latte might follow. It might be better though to symlink the directory ~/.config/latte and not just the MyLayout file. Latte takes as granted availability of ~/.config/latte directory