fvwmorg / fvwm3

FVWM version 3 -- the successor to fvwm2
Other
488 stars 75 forks source link

FvwmCommand doesn't find socket #1034

Closed akovalenko closed 2 weeks ago

akovalenko commented 3 weeks ago

After commit da4387bd84c6dcf7e4483d545c48610e5420992b, I started using FVWMMFL_SOCKET_PATH to put sockets into $XDG_RUNTIME_DIR/fvwm (which is the right place for multi-user system)

FvwmMFL (from the default config) creates a socket and provides FVWMMFL_SOCKET in the environment.

The problem is, FvwmCommand in da4387bd84c6dcf7e4483d545c48610e5420992b doesn't take FVWMMFL_SOCKET into account, resorting to guessing the socket path from FVWMMFL_SOCKET_PATH and DISPLAY. On my system it happens to guess wrongly: when the socket is created, it uses DISPLAY=:1 (as received from .Xsession), but under fvwm3, I have DISPLAY=:1.0 (with screen number).

Upfront Information

Expected Behaviour

Launched XTerm from FVWM, started FvwmCommand Module FvwmConsole, expected to see the console

Actual Behaviour

Cannot find FvwmMFL socket /run/user/1000/fvwm/fvwm_mfl_:1.0.sock.
Please start FvwmMFL module from your fvwm configuration.

Steps to Reproduce

How can the problem be reproduced?

ThomasAdam commented 2 weeks ago

Hi @akovalenko

Thanks. Can you please try FvwmCommand from the ta/fvwmmfl-display-socket3 branch?

This should now be working correctly.

akovalenko commented 2 weeks ago

Hi @ThomasAdam, FvwmCommand from ta/fvwmmfl-display-socket3 works for me.

ThomasAdam commented 2 weeks ago

Hey @akovalenko

Awesome. Thanks for testing!