https://bugs.kde.org/show_bug.cgi?id=448244

            Bug ID: 448244
           Summary: Unable to symlink config for managing as dotfiles.
           Product: lattedock
           Version: 0.10.6
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: application
          Assignee: mvourla...@gmail.com
          Reporter: johnnyfl...@gmail.com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to