-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
[Feature Request] Load custom configuration from %AppData% #601
Comments
To achieve this type of setup you can:
$usr_conf='@user.appdata\Nilesoft Shell\shell.conf.nss'
import if(path.exists(usr_conf),usr_conf,'shell.conf.nss') As for making this sort of configuration default - take a look at: #449 (comment). |
Thank you for your response! However, I feel that deleting the original content of shell.nss might be somewhat detrimental to the subsequent restoration of the default configuration. This would still require manual backup of the original settings. Regarding the reason mentioned in #449 (comment) for not using Appdata, I hold a different view: Those who can edit nss for customization generally possess a certain level of programming skills, and those who are unaware of appdata can be considered a tiny minority. Even if we need to cater to this group, there are multiple ways to handle it, such as: providing an option to "clear old configurations in Appdata" during installation and uninstallation, or allowing users to manually select a custom configuration directory option (including placing it directly under the main directory). This way, it can separate the custom configurations of users who need them from the default configurations to achieve a fallback effect, while also ensuring that users who don't understand don't have to worry about where the configuration files are hidden, a win-win situation. Of course, that's just my personal opinion. Deciding the direction of the software ultimately depends on the author. |
With these settings, the shell loads the configuration file from a custom path. [HKEY_CURRENT_USER\Software\Nilesoft\Shell]
"config"="path\\to\\shell.nss" |
Currently, all configuration files are located in the program directory, which leads to the following inconvenience:
C:\Program Files
directory requires administrator privileges, which is not convenient for creating imports configurations or modifying existing nss configurations (if using VSCode, each save requires a very cumbersomeconfirmation box in the lower right corner + UAC confirmation box). Although you can directly start the editor in administrator mode, I think this is not very elegant.I believe this configuration is more elegant:
For example, create a Nilesoft Shell directory in the user's
%AppData%
, the nss file and imports directory structure is the same as that in the program's main directory.As long as there is a shell.nss in the directory, the shell.nss in the program's main directory will not be loaded.
The text was updated successfully, but these errors were encountered: