dashboard-nvim icon indicating copy to clipboard operation
dashboard-nvim copied to clipboard

Fedora Atomic variants break recent projects path

Open pm4rcin opened this issue 1 year ago • 1 comments

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 avatar Apr 27 '24 08:04 pm4rcin

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?

pm4rcin avatar Sep 11 '24 12:09 pm4rcin