Skip to content

Commit

Permalink
fix emulators not being listed sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed May 6, 2024
1 parent 9e5b3e0 commit cf3d1c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func List() ([]AVD, error) {

cmd = exec.Command(
"ps",
"-e",
"-ww", // don't truncate output
"-o", "pid=,comm=",
)
Expand Down Expand Up @@ -190,6 +191,7 @@ func getDensity() (int, error) {
func emuInPID(pid int) string {
cmd := exec.Command(
"ps",
"-e",
"-ww", // don't truncate output
"-o", "args=",
"-p", strconv.Itoa(pid),
Expand Down

0 comments on commit cf3d1c5

Please sign in to comment.