ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.58k stars 948 forks source link

[Bug]: tealdeer config file should not be in `%USERPROFILE%/scoop/apps/tealdeer/current` #5500

Open nagromc opened 7 months ago

nagromc commented 7 months ago

Prerequisites

Package Name

tealdeer

Expected/Current Behaviour

I was trying to change the default configuration, but I realized the config file is located in %USERPROFILE%/scoop/apps/tealdeer/current/ instead of %USERPROFILE%/AppData/Roaming/tealdeer/tealdeer/.

The problem with this approach is that:

Steps to Reproduce

tldr --show-paths
Config dir:       C:\Users\foo\scoop\apps\tealdeer\current\ (env variable)
Config path:      C:\Users\foo\scoop\apps\tealdeer\current\config.toml
Cache dir:        C:\Users\foo\scoop\persist\tealdeer\cache (config file)
Pages dir:        C:\Users\foo\scoop\persist\tealdeer\cache\tldr-pages\
Custom pages dir: C:\Users\foo\scoop\persist\tealdeer\custom-pages (config file)

Possible Solution

Tealdeer offers several environment variables that can be used to solve this problem.

Scoop and Buckets Version

Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
21c454e90 (HEAD -> master, origin/master, origin/HEAD) yuescript: Update to version 0.21.8

'games' bucket:
94e13e7d4 (HEAD -> master, origin/master, origin/HEAD) duckstation-preview: Update to version 20240205-geafa5d4

'java' bucket:
4bf5794c (HEAD -> master, origin/master, origin/HEAD) intellij-jbr17: Update to version 17.0.9-b1087.11

'main' bucket:
2b64225dd (HEAD -> master, origin/master, origin/HEAD) stgit: Update to version 2.4.3

'morgan' bucket:
5a052ca (HEAD -> master, origin/master, origin/HEAD) hoppscotch: add version 23.12.1-1

'nerd-fonts' bucket:
8d9b6f9 (HEAD -> master, origin/master, origin/HEAD) smiley-sans-dev: Update to version 20240203.c9a011d

'nonportable' bucket:
f9709f5 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.125

'versions' bucket:
45952f510 (HEAD -> master, origin/master, origin/HEAD) zig-dev: Update to version 0.12.0-dev.2586

Scoop Config

aria2-warning-enabled : False
last_update           : 05/02/2024 09:58:29
use_external_7zip     : True
scoop_branch          : master
scoop_repo            : https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

nagromc commented 7 months ago

I can submit a PR if you wish.

tech189 commented 6 months ago

Please submit a PR if you can!

nagromc commented 6 months ago

Alright; I’ll push it soon.