We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mklink /h config.ini config.ini.real
ls -l
The text was updated successfully, but these errors were encountered:
@wsw0108 配置文件应该是直接写入文件的。要把配置文件放在其他地方,可以考虑使用命令行选项 --config
--config
Sorry, something went wrong.
@taroxd 谢谢提醒还有这个参数.
不过这主要是为了这个的persist的用途, https://github.com/lukesampson/scoop-extras/blob/master/snipaste.json#L15
scoop目前不支持在创建快捷方式时指定程序参数.
Snipaste更新配置文件时, 硬链接就丢失了, 严格来说是个问题. 我猜有可能是通过文件重命名方式来更新的?
@wsw0108 确实是通过改名的方式来更新的(QSettings)。 硬链接我没想到好的办法,不过如果使用软链接(symbolic link)就容易修,即使用: mklink config.ini config.ini.real 不知这个是否可以接受?
QSettings
mklink config.ini config.ini.real
或者这样,如果 config.ini 里包含配置项 config=\path\to\another\config.ini,就自动转为读取另一个配置文件,这样程序目录下的 config.ini 就可以只包含一项并且保持文件不变,配置实际存储在另一个指定文件里。
config.ini
config=\path\to\another\config.ini
No branches or pull requests
重现步骤
mklink /h config.ini config.ini.real
ls -l
, 显示 config.ini/config.ini.real 的链接数为 2结果
期望
The text was updated successfully, but these errors were encountered: