numix-folders
numix-folders copied to clipboard
Colours choice broke when running outside script directory
I have a problem when I run sudo numix-folders -t
.
Which folder style do you want? 6 Which folder colour do you want? blue Oops! You've chosen an invalid colour. Run 'numix-folders --colours' for an option list.
I'm on manjaro and installed numix-folders via the aur.
Which terminal/shell are you using?
I have xfce4-terminal 0.6.3. Shell is bash 4.3.42.
Yeah, it's still here.
I used to be able to get it to work by commenting out the case conversion (line 159) but now I have to add my preferred color as the default (line 164) and just hit enter.
At this point I suspect the code that processes all the other cases for default and custom colors is clobbering $answer.
I also get this error.
Is there a way to fix this?
//EDIT: Played a bit around. This error only appears on sudo numix-folders -t
Running the GUI (sudo numix-folders
) works as intended.
I can confirm this issue, it's due to https://github.com/numixproject/numix-folders/blob/master/numix-folders#L172 I think we need to add more options for the default colors (blue, red,...) @wa4557 You think you will have time to do this, otherwise i can open a PR to fix it ? :)
@bil-elmoussaoui What's the problem with the code there? Anyway please go ahead I'm in the middle of a shitload of work right now...
If you navigate to /usr/share/numix-folders and run the script, it works perfectly
This snippet should be a work-around to set numix-folders to style 6 with blue colours
cd /usr/share/numix-folders; echo -e "6\nblue\n | sudo numix-folders -t
I'm on manjaro and installed it via AUR
You were right, @ReDemoNBR
The trick is to run the script under the /usr/share/numix-folders
folder. Installed via AUR