Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请不要把登入信息保存在可执行文件相同目录下!!! #905

Open
SouthCraftX opened this issue Jul 14, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@SouthCraftX
Copy link

SouthCraftX commented Jul 14, 2024

1. 你使用的BBDown版本是什么?(指明 Release / Actions / DotnetTool)

1.6.2 ,用的AUR里的bbdown-git r498.fb3c0b6-1

2. 你在什么系统使用本软件?(Win/Linux/Mac)

Linux archlinux 6.9.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 12 Jul 2024 00:06:53 +0000 x86_64 GNU/Linux

3. 你使用的完整命令是什么?

BBDown login

4. 遇到了什么问题?

安装后可执行文件在/usr/bin/BBDown
在成功登入后,因普通用户无权写入/usr/bin,导致登入信息不能保存,出现以下错误

[2024-07-14 12:24:39.179] - UnauthorizedAccess_IODenied_Path, /usr/bin/BBDown.data

后来用了命令sudo chmod 777 /usr/bin/BBDown.data才临时解决了这个问题,但总感觉这样不舒服
我的建议是保存在用户的home目录下,比如~/.config/BBDown

5. 运行截图(最好开启--debug;注意自行将Cookie/Token等敏感信息隐藏)

2024-07-14_12-47
@nilaoda nilaoda added the enhancement New feature or request label Jul 24, 2024
@bysdxt
Copy link

bysdxt commented Aug 28, 2024

好像不是在执行文件目录下,而是当前目录,你cd到其他目录运行就好,不要直接在安装目录下运行

@nilaoda
Copy link
Owner

nilaoda commented Aug 30, 2024

对于非Windows用户来说确实是个问题,后续准备放到家目录去

@snowshoes
Copy link

你就不该把BBDown 文件放到/usr/bin 目录下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants