numix-folders icon indicating copy to clipboard operation
numix-folders copied to clipboard

Colours choice broke when running outside script directory

Open derwegi opened this issue 8 years ago • 8 comments

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.

derwegi avatar Jul 15 '16 11:07 derwegi

Which terminal/shell are you using?

andia89 avatar Jul 26 '16 15:07 andia89

I have xfce4-terminal 0.6.3. Shell is bash 4.3.42.

derwegi avatar Jul 28 '16 10:07 derwegi

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.

jamdox avatar Aug 13 '16 05:08 jamdox

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.

Trollwut avatar Sep 13 '16 12:09 Trollwut

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 ? :)

bilelmoussaoui avatar Sep 22 '16 15:09 bilelmoussaoui

@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...

andia89 avatar Sep 22 '16 16:09 andia89

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

ReDemoNBR avatar Dec 18 '17 00:12 ReDemoNBR

You were right, @ReDemoNBR

The trick is to run the script under the /usr/share/numix-folders folder. Installed via AUR

ludenticus avatar Mar 06 '18 17:03 ludenticus