loh-tar / tbsm

A pure bash session or application launcher. Inspired by cdm, tdm and krunner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Support for Freebsd ?

ahmadraniri1994 opened this issue · comments

Any support for freebsd ? I still have no luck when I try tbsm on freebsd. It's more simple on GNU/Linux distro.

Perhaps, I just need to adjust "readlink" part, since that command is kind of different between GNU/linux and freebsd. I'll try to give update, thanks.

It's just not readlink apparently, "sed", and probably other parts too.

Finally I can make it work for some WMs and wayland compositors (gnome X, openbox, hikari), still have no luck for gnome wayland, need to tinkering again.
What I did :

  • adjust readlink command.
  • replace sed with gsed.
  • replace tty with ttyv.

Any support for freebsd ?

Apparently not :-)
But you seem to make progress. You should use the shellchecked branch, this will be part of the next release.

I think I will not work on tbsm in the next weeks or months, so don't expect to much. But any PR is welcome to support other systems.

Honestly, I have little knowledge about github stuffs :), once it's done I'll give it update. Apparently gnome wayland also can't be launched via lightdm too, so I must be messed up on something.

I have little knowledge about github stuffs :)

I see, no problem. Should you have success you can mail me a diff or the complete source.

I never tried Wayland, so no help here too, sorry :-)

I never tried Wayland, so no help here too, sorry :-)

But your tbsm works great when I use it to launch Wayland hehe.

you can mail me a diff or the complete source.

Sure, ASAP, I'm away from my machine right now.

Hello, I'm sorry for too long on respond, This is my freebsd version of tbsm. For wayland compositor, mostly works except for gnome wayland or kde wayland (since no official wayland support for now).
Hope it helps.

Hello, I'm sorry for too long on respond,

Three days is nearly immediately, there is no need to apologize :-) I'm the one which will take longer to look closer on your patch.

..except for gnome wayland or kde wayland

Hm, strange why some Wayland stuff works, some other not. Maybe someone else came around with a hint.

Until soon, but have a little patience. Thank you.

Hello Ahmad,

I have looked a little on you changes.
ATM I tend to add a (Free)BSD branch to the repo which I will try to keep in sync with master. As long as there are no further requests to support BSD, or other system which require some special commands to do some stuff, I would like to avoid to introduce extra checks and quirks to support all these "out of the box". Even though it should not be that difficult to add these quirks.

I have some questions:

  • Is it typical to have so much in /usr/local for (Free)BSD or is it more the way you like it and you have configured your system
  • I guess gsed is GNU-sed. Is that always available on (Free)BSD or should that mentioned as a dependency for proper use of tbsm?

Regarding Wayland: Did you notice that there is here a PR #21? So far I know is D-Bus "Linux stuff" and not available on (Free)BSD, so the current code and proposed changes may not fit for (Free)BSD. Any hint from you may useful there.