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

Shell greeter - printout errors #28

Open
Janiaje opened this issue Nov 23, 2020 · 15 comments
Open

Shell greeter - printout errors #28

Janiaje opened this issue Nov 23, 2020 · 15 comments
Assignees

Comments

@Janiaje
Copy link

Janiaje commented Nov 23, 2020

Describe the bug
Before the logo there are some errors displayed:so
Screenshot from 2020-11-24 00-08-40

To Reproduce
Steps to reproduce the behavior:

  1. Clear install on Ubuntu 20 following the stepts in the README.md
  2. Startup a terminal

Expected behavior
No errors displayed.

@andresgongora andresgongora self-assigned this Nov 25, 2020
@andresgongora andresgongora transferred this issue from andresgongora/synth-shell Nov 25, 2020
@andresgongora
Copy link
Owner

This issue might be related to #24 . Can you check whether you have bc installed?

sudo apt-get install bc

@Janiaje
Copy link
Author

Janiaje commented Nov 26, 2020

It is already installed:

image

@andresgongora
Copy link
Owner

Ok, then it's probably related to your locale. Do you write decimals with , or . (e.g., 13.2 vs 13,2)?
I've pushed a new fix that should solve this. Just update your repository from master and try again. Please let me know if it worked ;)

@andresgongora
Copy link
Owner

@Janiaje Did it work? :)

@Janiaje
Copy link
Author

Janiaje commented Nov 30, 2020

Sry for the delay.

It did not work though I am not sure I reinstalled it properly:

  • Reinstall: image
  • It only added a duplication to the .bashrc file. (Line 166-170 is the newly added part) image

And now it prints out the greeter twice on terminal startup (the error message is there before each greeter).

@Janiaje
Copy link
Author

Janiaje commented Nov 30, 2020

My locale is the following:
image

It uses , to write decimals:
image

@Janiaje
Copy link
Author

Janiaje commented Nov 30, 2020

I ran the ~/.config/synth-shell/uninstall.sh and reinstalled from the bginning and I still get the error messages

@andresgongora
Copy link
Owner

Sorry it took so long. The issue is that I only fixed the bc problem in one file, when there where several files using it. I've fixed the whole issue by calling the script with LANG=C for everything (see /synth-shell-greeter/synth-shell-greeter.sh line 248).

This should solve the problem once and for all. Let's give it a try :)

@andresgongora
Copy link
Owner

I ran the ~/.config/synth-shell/uninstall.sh and reinstalled from the bginning and I still get the error messages

The uninstall script is quite broken... I fear. It does not remove all files, really. But reinstalling should fix the issue

@andresgongora
Copy link
Owner

andresgongora commented Dec 1, 2020 via email

@andresgongora
Copy link
Owner

@Janiaje I sent a message last Tuesday but it's not listed here. Odd.
I think I've fixed it now. Please upadte your master branch and just follow the usual install process. Uninstalling is not required.

If you get a double prompt:

nano ~/.bashrc

And delete everyline that says synth-shell. Then reinstall and open a new terminal :)

@andresgongora
Copy link
Owner

I've created a test setup and I'm able to reproduce the error but I'm still not sure of the cause. Working on it...

@Janiaje
Copy link
Author

Janiaje commented Dec 11, 2020 via email

@andresgongora
Copy link
Owner

andresgongora commented Dec 15, 2020

The problem is 99.99% related to the locale it is run with. I've edited the script so that it runs with LANG=C.

Just in case, @Janiaje try the following:

## Should work fine:
LANG=C source .config/synth-shell/synth-shell-prompt.sh

## If it fails, it's with this. Maybe it no longer fails:
LANG=hu_HU.utf8 source .config/synth-shell/synth-shell-prompt.sh

To install the latest version of synthshell (I've edited the setup script, so you might want to create a clean install):

  1. Edit ~/.bashrc and remove the lines reffering to synth-shell, usually at the bottom of the file.
nano ~/.bashrc
  1. Remove the folder containing the script, should be in your home folder. Maybe you want to backup your config and logo first.
rm -r ~/.config/synth-shell/
  1. Clean synth-shell setup:
git clone --recursive https://github.com/andresgongora/synth-shell.git
chmod +x synth-shell/setup.sh
synth-shell/setup.sh

@andresgongora
Copy link
Owner

P.S.: your bash prompt would look nicer if you install the font hack-ttf or ttf-hack and tell your terminal (I guess it's gnome-terminal??) to use that instead of the default ubuntu-mono font ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants