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

After running zed on Ubuntu, subsequent programs that start cannot obtain the name 'NTED_WM-PID' #22326

Open
1 task done
infatu8 opened this issue Dec 21, 2024 · 1 comment · May be fixed by #22348
Open
1 task done
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@infatu8
Copy link

infatu8 commented Dec 21, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

On Ubuntu, I first started zed and then opened an image using the system's default method. The process name displaying the image is eog.
At this point, I started writing my program using zed, and the code is as follows:

package main

import (
	"fmt"

	"github.com/go-vgo/robotgo"
)

func main() {
	pids, err := robotgo.FindIds("eog")
	if err != nil {
		fmt.Println(err)
		return
	}

	if len(pids) < 1 {
		fmt.Println("pids length is 0")
		return
	}

	pid := pids[0]
	fmt.Println("pid:", pid)

	// robotgo.ActivePid(pid)

	name, err := robotgo.FindName(pid)
	fmt.Println("name:", name, "err:", err)

	title := robotgo.GetTitle(pid)
	fmt.Println(title)

	x, y, w, h := robotgo.GetBounds(pid)
	fmt.Printf("pos: x = %d, y = %d\n", x, y)
	fmt.Printf("size: w = %d, h = %d\n", w, h)

}

Now I am running the main function with zed, and it prompts' Get Xid from Pid errors is: VNet perty: No such property '_SET_SWM-PID' on window 4600002. '
After closing zed and the image I just opened, reopen the image and use go run I can run the program I wrote normally

Zed Version and System Specs

Zed: v0.166.1 (Zed)
OS: Linux X11 ubuntu 24.04
Memory: 31.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce GTX 750 Ti || NVIDIA || 550.120

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@infatu8 infatu8 added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Dec 21, 2024
@0xtimsb
Copy link
Contributor

0xtimsb commented Dec 21, 2024

I'm able to reproduce this. Looking into it.

@0xtimsb 0xtimsb linked a pull request Dec 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants