Skip to content
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

Colours choice broke when running outside script directory #160

Open
derwegi opened this issue Jul 15, 2016 · 8 comments
Open

Colours choice broke when running outside script directory #160

derwegi opened this issue Jul 15, 2016 · 8 comments
Labels

Comments

@derwegi
Copy link

derwegi commented Jul 15, 2016

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
Copy link
Contributor

andia89 commented Jul 26, 2016

Which terminal/shell are you using?

@derwegi
Copy link
Author

derwegi commented Jul 28, 2016

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

@Foggalong Foggalong added the bug label Aug 2, 2016
@jamdox
Copy link

jamdox commented Aug 13, 2016

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
Copy link

Trollwut commented Sep 13, 2016

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
Copy link
Contributor

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
Copy link
Contributor

andia89 commented Sep 22, 2016

@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
Copy link

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
Copy link

You were right, @ReDemoNBR

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

@Foggalong Foggalong changed the title Oops! You've chosen an invalid colour. Colours choice broke when running outside script directory Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

8 participants