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

[BUG] Got duplicated ipc service in process #1058

Open
3 tasks done
laowalter opened this issue Mar 29, 2024 · 0 comments
Open
3 tasks done

[BUG] Got duplicated ipc service in process #1058

laowalter opened this issue Mar 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@laowalter
Copy link

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

I have two monitors, one is DP-1 the other is DP-2.
When run eww open bar0, it works good, but I found there two duplicate script/ipc running process. I thought there should be one bash script/ipc DP-1.

$ eww open bar0
$ ps aux|grep ipc
user 22137 0.0 0.0 13304 3584 ? S 22:32 0:00 bash script/ipc DP-1
user 22140 0.0 0.0 13304 2316 ? S 22:32 0:00 bash script/ipc DP-1
user 22276 0.0 0.0 12404 2048 pts/0 R+ 22:32 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn ipc

Reproducing the issue

;;Variables (defpoll hm :interval "60s" :initial "initial-value"date +%H:%M) (defpoll sec :interval "1s" :initial "initial-value" date +:%S`)
(deflisten workspace_ipc_DP1 "script/ipc DP-1")
(deflisten workspace_ipc_DP2 "script/ipc DP-2")
(defvar workspace_eventbox "workspace eventbox")

;; Window bar
(defwindow bar0
:monitor 0
:stacking "fg"
:windowtype "normal"
:exclusive true
:orientation "horizontal"
:focusable false
:geometry (geometry :x "0" :y "0" :width "100%" :height "20px" :anchor "top center")
(box
:class "workspace"
:halign "center"
(literal :valign "center"
:content workspace_ipc_DP1)))

(defwindow bar1
:monitor 1
:stacking "fg"
:windowtype "normal"
:exclusive true
:orientation "horizontal"
:focusable false
:geometry (geometry :x "0" :y "0" :width "100%" :height "20px" :anchor "top center")
(box
:class "workspace"
:halign "center"
(literal :valign "center"
:content workspace_ipc_DP2)))
`

I run once eww open bar0, but got the two duplicated sessions
$ ps aux|grep ipc
user 22137 0.0 0.0 13304 3584 ? S 22:32 0:00 bash script/ipc DP-1
user 22140 0.0 0.0 13304 2316 ? S 22:32 0:00 bash script/ipc DP-1

Expected behaviour

Should be one process

user 22140 0.0 0.0 13304 2316 ? S 22:32 0:00 bash script/ipc DP-1

Additional context

No response

@laowalter laowalter added the bug Something isn't working label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant