Giter Club home page Giter Club logo

Comments (9)

 avatar commented on September 17, 2024

I just reproduced your problem.

For now, replace the call status_command in your i3 config with:
status_command SCRIPT_DIR=/usr/libexec/i3blocks i3blocks

For future reference, error 127 from any Korn compatible shell is a command not found error.

This is an upstream issue.


Regression: 4939ed2

@vivien, I don't know how you want to handle this but the default config has that variable in it.

  • Do you want to remove it from the default config and replace it with /usr/libexec/i3blocks/?
  • Set that as a default variable for config execution in the C source?
  • Allow environment variables to be set in the config?
  • Or just add it to the header documentation of the included config that this is a thing?

from i3blocks.

jpleau avatar jpleau commented on September 17, 2024

You can also debug this with using the -vvv file (increases log level). Now sure how much it'll help in this case, though.

from i3blocks.

lsmag avatar lsmag commented on September 17, 2024

Thanks @Nycroth , that solved the problem, I didn't know anything about that kind of error codes, one more thing to look further =D

from i3blocks.

vivien avatar vivien commented on September 17, 2024

@Nycroth, I don't think there is an issue with the default config. If you use make install, the $SCRIPT_DIR variable is replaced by the wanted libexec dir. Otherwise, calling i3blocks with a SCRIPT_DIR value is OK, as you correctly pointed out.

@lsmag for information, how did you install i3blocks on your Arch?

from i3blocks.

 avatar commented on September 17, 2024

It seems like I have something similar, but the exit code is 126..
BTW, I have zsh installed and used

from i3blocks.

vivien avatar vivien commented on September 17, 2024

What about you @mrcaaattt, how did you install i3blocks? You may want to check your config and check error debug messages with i3blocks -vv >/dev/null

from i3blocks.

 avatar commented on September 17, 2024

It seems that it wasn't set executable. Just had to chmod +x it. Weird, the first time I installed it, it was okay, but since I reinstalled my system, I needed to chmod it first. Thanks though.

from i3blocks.

vivien avatar vivien commented on September 17, 2024

I close the issue since it is solved. We can continue discussion on installation tweaks though.

from i3blocks.

lpasselin avatar lpasselin commented on September 17, 2024

If you are seeing error 127 with python blocks only, make sure you downloaded the Block's requirements for your system's python environment.

Using anaconda's python and running i3blocks from terminal will show the scripts working. But text won't be shown on the bar.

from i3blocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.