Replies: 2 comments 1 reply
-
|
Hello. I update the code every day, so I do not use frozen packages and I want users to run git pull every day as well. 😄 However, I understand that there are cases where the directories with write access need to be changed, so I plan to provide a way to set them using environment variables. NUNIF_HOME=~/.config/nunif/ python -m iw3.guiOr set it in Regarding the default paths, I do not plan to change them because I intentionally avoid accessing files outside the repository directory and many users are already using the current settings. |
Beta Was this translation helpful? Give feedback.
-
|
Yep, I totally agree with you that it should be environment variables instead of a fixed path, when I did the patch I just wanted to make it work in my Nix system, but now that you mentioned it, I should've done it with env variables instead haha |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, yesterday I created a Nix package for the IW3 application for my needs, maybe it can be of interest for other people, so I decided to post it here.
The package will only generate an executable for the IW3 gui app, not the rest (since I only use IW3), but it should be fairly easy to improve it with the other functionalities of the repo.
The package will also create a desktop icon for easy access and it will apply some patches so tmp/config data (iw3 config, presets, pretrained models, etc) are saved in
~/.config/nunifinstead of thetmpdir inside the nunif directory (mandatory for Nix since the nunif dir will be read-only).I also added another patch so opening IW3 stops the creation of a lock file in the user home file (it will create in the
XDG_RUNTIME_DIRdirectory, and, if not set, it will fallback to/tmp).Maybe these patches can be interesting to be applied to the main code if @nagadomi is interested.
Here are the patches and desktop icon used:

change_config_dir.patch
change_wx_lock_file_location.patch
Github doesn't allow
.nixfiles to be uploaded, so here is thepackage.nixfile implementing the package:Beta Was this translation helpful? Give feedback.
All reactions