Lyr-7D1h / swayest_workstyle

Map workspace names to icons for Sway
MIT License
119 stars 18 forks source link

sworkstyle rarely loads - transport endpoint not connected #29

Closed randre03 closed 2 years ago

randre03 commented 2 years ago

Hello, I run sworkstyle as part of the Manjaro Sway Desktop (https://github.com/Manjaro-Sway/manjaro-sway), however; it almost never loads. Looking at the log just shows: Error: Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }

The only times it will load is on those occasions when I need to call sway reload.

Manjaro Sway loads sworkstyle as follows (in a file called /etc/sway/config.d/99-autostart-applications.conf

exec_always {
    # start some applications...
    '[ -x "$(command -v sworkstyle)" ] && pkill sworkstyle; sworkstyle &> /tmp/sworkstyle.log'
    # start some other applications...
}

Based on the error message and how it loads sometimes could this be an issue related to the time when sworkstyle is loaded? Thanks!

Lyr-7D1h commented 2 years ago

They should start it only once. I have made a pr to fix this on majaro-sway https://github.com/Manjaro-Sway/desktop-settings/pull/115

Lyr-7D1h commented 2 years ago

My changes have been merged in the sway pr issue should now be resolved.