Skip to content

UnhandledPromiseRejectionWarning: Error: Command failed: cat /proc/undefined/cmdline #99

Description

@Robert-Riedl

Sessions aren't saved, throw errors and just hangs

🥞 Action version

lwsm 4.0.5

🎩 workflow configuration

Your workflow configuration

Steps To Reproduce

Steps to reproduce the behavior:

  1. open terminal
  2. type lwsm save

🚓 Expected behavior

Session should be saved

➕ Additional context

Nodejs is installed properly and I'm not on wayland

`

ERR: findDesktopFile() cant find file "Navigator.desktop"! Searched desktopFileLocations: [ '{home}/.local/share/applications',
  '{home}/.gnome/apps',
  '/usr/share/applications',
  '/usr/local/share/applications',
  '/usr/share/app-install',
  '{home}/.config/autostart',
  '/var/lib/snapd/desktop/applications',
  '/var/lib/flatpak/app',
  '/var/lib/flatpak/exports/share/applications',
  '{home}/.local/share/flatpak/exports/share/applications',
  '/snap/bin',
  '{home}/.local/share/applications',
  '{home}/.gnome/apps',
  '/usr/share/applications',
  '/usr/local/share/applications',
  '/usr/share/app-install',
  '{home}/.config/autostart',
  '/var/lib/snapd/desktop/applications',
  '/var/lib/flatpak/app',
  '/var/lib/flatpak/exports/share/applications',
  '{home}/.local/share/flatpak/exports/share/applications',
  '/snap/bin' ]
[...]
ERR _guessFilePath() { Error: Command failed: cat /proc/undefined/cmdline
cat: /proc/undefined/cmdline: No such file or directory

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cat /proc/undefined/cmdline' }
Generic Error in Main Handler { Error: Command failed: cat /proc/undefined/cmdline
cat: /proc/undefined/cmdline: No such file or directory
[...]
(node:20542) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:20542) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 5)

 Alternative guessing approach for "firefox" SUCCESS -> /usr/lib/firefox/firefox

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions