|
|
@ -1,6 +1,5 @@
|
|
|
|
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
|
|
|
|
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
|
|
|
|
import { EventEmitter } from "events";
|
|
|
|
import { EventEmitter } from "events";
|
|
|
|
import { promisify } from "util";
|
|
|
|
|
|
|
|
import simpleSpawn from "./simple-spawn";
|
|
|
|
import simpleSpawn from "./simple-spawn";
|
|
|
|
import sleep from "./sleep";
|
|
|
|
import sleep from "./sleep";
|
|
|
|
|
|
|
|
|
|
|
@ -142,7 +141,11 @@ export default class Dialog extends EventEmitter {
|
|
|
|
"node-zenity",
|
|
|
|
"node-zenity",
|
|
|
|
]); // to activate it
|
|
|
|
]); // to activate it
|
|
|
|
if (last_position) {
|
|
|
|
if (last_position) {
|
|
|
|
const { width, height } = await get_geometry();
|
|
|
|
const geometry = await get_geometry();
|
|
|
|
|
|
|
|
if (!geometry) {
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const { width, height } = geometry;
|
|
|
|
console.log(last_position, width, height);
|
|
|
|
console.log(last_position, width, height);
|
|
|
|
await set_geometry({
|
|
|
|
await set_geometry({
|
|
|
|
x: last_position.x - width / 2 - 11,
|
|
|
|
x: last_position.x - width / 2 - 11,
|
|
|
|