diggylab 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +3 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -2612,8 +2612,9 @@ async function commandLogin(runtime, options, io) {
2612
2612
  }
2613
2613
  let display = null;
2614
2614
  try {
2615
- if (process.env.DISPLAY) {
2616
- io.log(`Opening the Facebook login page on display ${process.env.DISPLAY}.`);
2615
+ const needsVirtualDisplay = process.platform === "linux" && !process.env.DISPLAY;
2616
+ if (!needsVirtualDisplay) {
2617
+ io.log(process.env.DISPLAY ? `Opening the Facebook login page on display ${process.env.DISPLAY}.` : "Opening the Facebook login page in a browser window.");
2617
2618
  } else {
2618
2619
  display = await startVirtualDisplay({
2619
2620
  bind: options.bind,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diggylab",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "DiggyLab Desktop Agent collects posts and information from Facebook Groups on a paired computer. (headless CLI)",
5
5
  "type": "module",
6
6
  "bin": {