Tony Narlock
Tony Narlock
Thank you for the above! > > When I run this code, the session is created successfully (tmux opens up, there is a single window with text like $2 in...
With a fresh tmux server (`socket_name="test_test"`) and vanilla configuration (`config_file="/dev/null"`): ``` python3 -c 'import libtmux ; print(libtmux.Server(socket_name="test_test", config_file="/dev/null").new_session(attach=True, session_name="r"))' ``` Closing will show this (same idea, though): ``` ❯ python3...
@Pipeliner Try this: ``` python3 -c 'import libtmux ; session = libtmux.Server().new_session(session_name="r"); print(session); session.attach_session()' ``` Explanation of above: Return the `new_session`, `print` the object, then attach. This way its not...
> Your samples works @tony thank you! So it seems that `attach=True` does not work for `new_session()`? As of `v0.23.2`: `new_session()` with `attach=True` will start a tmux client inside the...
@Pipeliner Added formatting to your comment [here](https://github.com/tmux-python/libtmux/issues/502#issuecomment-1774193997)
Something needs to be done, along the lines of a [`os`](https://docs.python.org/3/library/os.html).[`fork`](https://docs.python.org/3/library/os.html#os.fork) / [`os.spawn`](https://docs.python.org/3/library/os.html#os.spawnvpe) / etc. The solution to this would actually make a good example for the documentation. Below, all...
@johanneskastl Have you seen other packages have this issue? I am not quite sure how to help - but interested in finding a solution.
I will look into a longterm solution or fix Short term: One possibility is I can disable the test on openSUSE - is there a reliable marker to check for...
@dvzrv Does `0.23.0` (without the `post0`) give this issue, too? Are you able to tell if `gp-libs` is installed along py.test? [`gp-libs`](https://pypi.org/project/gp-libs/) ([homepage](https://gp-libs.git-pull.com/), [github](https://github.com/git-pull/gp-libs)) is a test dependency and where...