Coder Social home page Coder Social logo

Comments (4)

colonelpanic8 avatar colonelpanic8 commented on July 28, 2024

@patrickpichler
the taffybar binary needs in a path that can be found in your $PATH environment variable (as seen by systemd)

even if taffybar (or the whatever binary in question) is on your path in your SHELL, it might not be there for the systemd session. That is why I explicitly import my PATH here:

https://github.com/IvanMalison/dotfiles/blob/c1652258034679a9620df42debec297a6c5bb071/dotfiles/lib/shellpath.sh#L24

You'll usually want this to get executed somehow from .xprofile or something like that.

One thing you should know about my taffybar setup is that it is slightly non-standard in that I don't use the binary provided by taffybar, but a script that actually runs a stack build for taffybar:

https://github.com/IvanMalison/dotfiles/blob/c1652258034679a9620df42debec297a6c5bb071/dotfiles/lib/bin/taffybar#L1

This in turn produces a binary called imalison-taffybar, and that is what actually gets executed.

In the typical case taffybar will be located in

/$HOME/.local/bin/taffybar if you are using stack or $HOME/.cabal/bin/taffybar in the case of cabal.

I tried putting it into /usr/bin but without luck.

I would recommend against ever explicitly copying anything into that directory unless it is absolutely necessary

from dotfiles.

patrickpichler avatar patrickpichler commented on July 28, 2024

Thank you for your answer. I must have overlooked the shellpath script in your configuration.

from dotfiles.

colonelpanic8 avatar colonelpanic8 commented on July 28, 2024

@patrickpichler I wouldn't try to lift too much stuff from shellpath unless you are going to use it in its entirety. My path stuff is pretty complicated, and it could end up confusing you more than it helps.their entirety.

One thing that is useful for figuring out systemd stuff is:

https://github.com/IvanMalison/dotfiles/blob/master/dotfiles/lib/bin/rofi_systemd.sh

you can use the tail option to look at what is happening with any given sytemd unit without worrying about if its in the system session or th euser session

from dotfiles.

patrickpichler avatar patrickpichler commented on July 28, 2024

I will take a look at it. Thank you.

from dotfiles.

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.