nvimdev / dashboard-nvim

vim dashboard
MIT License
2.34k stars 190 forks source link

Fedora Atomic variants break recent projects path #448

Open pm4rcin opened 5 months ago

pm4rcin commented 5 months ago

Describe the bug Hi, on Fedora Atomic e.g. Silverblue, Kinoite, Sway and Budgie home is symlinked to /var/home and when the dashboard opens there's following output on projects:

Recent Projects:
/var~/Repos/dwl

which of course breaks things so you can't enter the project directory. What's interesting is the recent files have proper names. To Reproduce Steps to reproduce the behavior:

  1. Open neovim on Fedora Atomic variant
  2. See path being wrong in projects

Expected behavior Path should be ~/Repos/dwl.

Screenshots 20240427_10h26m47s_grim

pm4rcin commented 3 weeks ago

So it looks like because dashboard or nvim changes /home/user to ~ automatically it breaks itself. But when I deleted the /var part from cache manually then it went to normal. So to fix it I think there needs to be a piece of code that checks if the path contains /var/home/* and throw the /var part away or the function should be modified to return relative path (home dir). Could anyone tell me if it's neovim or lua code that creates this mess?