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

--config-json not working #864

Open
pierricgimmig opened this issue Dec 12, 2023 · 1 comment
Open

--config-json not working #864

pierricgimmig opened this issue Dec 12, 2023 · 1 comment

Comments

@pierricgimmig
Copy link

Running ./terminator --config-json data/layout-files-examples/2-3-grid.json is not working, I get the default window instead of the requested layout. I'm running on Ubuntu 22.04. Here's the output when adding the -d flag:

DBusService::prepare_attributes: Checking for bus name availability: net.tenshu.Terminator23558193cd9818af7fe4d2c2f5bd9d00f
DBusService::prepare_attributes: bus name unavailable: net.tenshu.Terminator23558193cd9818af7fe4d2c2f5bd9d00f
noclass::<module>: Unable to become master process, operating via DBus
noclass::<module>: Requesting a new window

The call to proxy.RequestName(BUS_NAME, dbus.UInt32(flags)) returns 3

A workaround is to use --no-dbus: ./terminator --config-json data/layout-files-examples/2-3-grid.json --no-dbus.

Another workaround is to ensure that the BUS_NAME variable always has a new unique value, appending a timestamp for example, but this involves changing code in ipc.py. By default, BUS_NAME is always the same, which I think is the root of the issue.

This seems to be the same issue described in #850

@pierricgimmig
Copy link
Author

pierricgimmig commented Dec 12, 2023

I just realized this is a known issue. From https://terminator-gtk2.readthedocs.io/en/latest/advancedusage.html:

Running a single instance of Terminator will cause problems if you are trying to launch a [layout](https://terminator-
gtk2.readthedocs.io/en/latest/layouts.html#layouts), when an instance is already running, so when configuring a program, 
script or menu item to launch a layout, you need to remember to include the -u option that will disable the DBus for that 
instance. [The Layout Launcher](https://terminator-gtk2.readthedocs.io/en/latest/layouts.html#layout-launcher) does this for 
you, and as a result any launched layout is running without DBus, and cannot be controlled with DBus.

Doing this automatically would be nice...

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

1 participant