-
Notifications
You must be signed in to change notification settings - Fork 26
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
Don't touch system-wide files when run as user. #180
base: master
Are you sure you want to change the base?
Conversation
I have an issue with large icons (96 and 128 I believe) when using custom colors. If someone more knowledgeable of the theme could take a look at what is possibly missing, it would be greatly appreciated. Edit: It seems to be unrelated to this PR as the file lists generated in both cases are identical. |
Why use |
There wasn't any specific reason I chose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very belatedly I'm testing this now and I generally like it other than that it's quite slow during the symlink creation stage. Not sure what part of the changes is the bottleneck there but some testing needed.
Also yeah, ~/.icons
needs switching for ~/.local/share/icons
just to remain standards compliant but that's an easy enough switch.
Bug which arises with this method is that any symlinks not included in the created "Numix Folders" theme aren't being picked up by the inheritance system. Not sure why that's the case but further testing there needed also. |
The bottleneck is the amount of symlinks and that The issue with the custom folder colours not being used in large sized icons is due to those icons being symlinked from the system-wide Numix folder as they don't exist in the Numix-Folders. A solution could be to copy those files, either in the script or by including them in Numix-Folders. A solution could also be to just copy everything to the local folder on top of each other and be done with it. I will also be faster, but the script should be run then on every update and more storage space will be required. On a second look, there are a few more tricks that can be done to fix all of these. |
This reverts commit c213b67.
Reduces execution time by ~4 seconds on my system
Instead recreate the linking in the Numix-Folders theme. Cuts theme creation time by about 50%
Removes 96 directory and symlinks 96 -> 48. This mirrors base Numix theme where the subfolders of 96 are symlinks to the 48 equivalents
5823e21
to
a43c1e7
Compare
When Numix Folders application is run as a regular user, and the themes are installed system-wide, instead of replacing files in system-wide, create a new theme which inherits the base theme specified by the user. This helps with package managers that expect for files installed in
/usr
to remain untouched. Also helps with package upgrades of the base themes.Although it works, I haven't tested it thoroughly yet, so I consider it work-in-progress. It is quite slow for now, possibly because most string manip is done in bash or inefficiently. Still, I would like to get some more eyes on it.