numixproject / numix-folders

Alternate folders for use with our base icon theme.
GNU General Public License v3.0
151 stars 26 forks source link

Colours choice broke when running outside script directory #160

Open derwegi opened 8 years ago

derwegi commented 8 years ago

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.

andia89 commented 8 years ago

Which terminal/shell are you using?

derwegi commented 8 years ago

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

jamdox commented 8 years ago

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.

Trollwut commented 7 years ago

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.

bilelmoussaoui commented 7 years ago

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

andia89 commented 7 years ago

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

ReDemoNBR commented 6 years ago

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

ludenticus commented 6 years ago

You were right, @ReDemoNBR

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