Skip to content

Instantly share code, notes, and snippets.

@schmunk42
Created July 17, 2019 13:00
Show Gist options
  • Save schmunk42/2098c4fd575acefbfad5480ccd36337c to your computer and use it in GitHub Desktop.
Save schmunk42/2098c4fd575acefbfad5480ccd36337c to your computer and use it in GitHub Desktop.
> lwsm restore broken
Status: "qtpass.QtPass" is running: true 1 0
Status: "gnome-terminal-server.Gnome-terminal" is running: true 1 0
Status: "org.gnome.Nautilus.Org.gnome.Nautilus" is running: false 1 0
Starting: org.desktop
Status: "evolution.Evolution" is running: true 1 0
Status: "wavebox.wavebox" is running: true 1 0
Status: "Navigator.Firefox" is running: true 1 0
Status: "typora.Typora" is running: false 1 0
Starting: typora.desktop
Status: "sun-awt-X11-XFramePeer.jetbrains-phpstorm" is running: true 3 0
Status: "sun-awt-X11-XFramePeer.jetbrains-phpstorm" is running: true 3 0
Status: "sun-awt-X11-XFramePeer.jetbrains-phpstorm" is running: true 3 0
Status: "chromium.Chromium" is running: true 1 0
Status: "org.gnome.gedit.Org.gnome.gedit" is running: true 1 0
Wait for all applications to start
events.js:170
throw er; // Unhandled 'error' event
^
Error: spawn org.desktop ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19)
at onErrorNT (internal/child_process.js:429:16)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:253:12)
at onErrorNT (internal/child_process.js:429:16)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
lwsm save broken
findDesktopFile cant find file; searched patterns [ '/usr/share/applications/org.gnome.org.desktop',
'/home/schmunk/.local/share/applications/org.desktop',
'/home/schmunk/.local/share/applications/**/org.desktop',
'/home/schmunk/.gnome/apps//org.desktop',
'/home/schmunk/.gnome/apps//**/org.desktop',
'/usr/share/applications/org.desktop',
'/usr/share/applications/**/org.desktop',
'/usr/local/share/applications/org.desktop',
'/usr/local/share/applications/**/org.desktop',
'/usr/share/app-install/org.desktop',
'/usr/share/app-install/**/org.desktop',
'/home/schmunk/.config/autostart//org.desktop',
'/home/schmunk/.config/autostart//**/org.desktop' ]
util: Generic Error findDesktopFile cant find file; searched patterns undefined
util: [Arguments] { '0': 'findDesktopFile cant find file; searched patterns' }
Input Handler Error: No input for desktop file path for window "org.gnome.Nautilus.Org.gnome.Nautilus". Please fix this manually in config file for this session in ~/.lwsm/{currentSessionName}.json
LWSM was unable to guess the location of your executable/desktop file.
There are 3 things, that you can do now:
Either you can locate the executable or desktop file manually for
the application which isn't started (e.g. via the locate command),
and add it to ~/.lwsm/{currentSessionName}.json. If you want to
persist the mapping you might also want to open ~/.lwsm/config.json
and edit the WM_CLASS_AND_EXECUTABLE_FILE_MAP property by adding a
mapping for 'org.gnome.Nautilus.Org.gnome.Nautilus'.
If there is a desktop file for the application you might want
to add it's location to the DESKTOP_FILE_LOCATIONS property
in ~/.lwsm/config.json to make sure this folder is also searched
the next LWSM tries to guess an desktop file path.
If your applications tend to have a prefix or suffix, you can also
use DESKTOP_FILE_PATTERNS.
Adding "/usr/share/applications/org.gnome.{fileName}" for example
will search for desktop files which are prefixed with "org.gnome."
inside "/usr/share/applications".
If you want LWSM to ignore the application, you can add
the application to the ignore list in ~/.lwsm/config.json which
is located under the WM_CLASS_EXCLUSIONS property.
If everything fails please open up an issue at:
https://github.com/johannesjo/linux-window-session-manager/issues
undefined
findDesktopFile cant find file; searched patterns [ '/usr/share/applications/org.gnome.evolution.desktop',
'/home/schmunk/.local/share/applications/evolution.desktop',
'/home/schmunk/.local/share/applications/**/evolution.desktop',
'/home/schmunk/.gnome/apps//evolution.desktop',
'/home/schmunk/.gnome/apps//**/evolution.desktop',
'/usr/share/applications/evolution.desktop',
'/usr/share/applications/**/evolution.desktop',
'/usr/local/share/applications/evolution.desktop',
'/usr/local/share/applications/**/evolution.desktop',
'/usr/share/app-install/evolution.desktop',
'/usr/share/app-install/**/evolution.desktop',
'/home/schmunk/.config/autostart//evolution.desktop',
'/home/schmunk/.config/autostart//**/evolution.desktop' ]
util: Generic Error findDesktopFile cant find file; searched patterns undefined
util: [Arguments] { '0': 'findDesktopFile cant find file; searched patterns' }
Input Handler Error: No input for desktop file path for window "evolution.Evolution". Please fix this manually in config file for this session in ~/.lwsm/{currentSessionName}.json
LWSM was unable to guess the location of your executable/desktop file.
There are 3 things, that you can do now:
Either you can locate the executable or desktop file manually for
the application which isn't started (e.g. via the locate command),
and add it to ~/.lwsm/{currentSessionName}.json. If you want to
persist the mapping you might also want to open ~/.lwsm/config.json
and edit the WM_CLASS_AND_EXECUTABLE_FILE_MAP property by adding a
mapping for 'evolution.Evolution'.
If there is a desktop file for the application you might want
to add it's location to the DESKTOP_FILE_LOCATIONS property
in ~/.lwsm/config.json to make sure this folder is also searched
the next LWSM tries to guess an desktop file path.
If your applications tend to have a prefix or suffix, you can also
use DESKTOP_FILE_PATTERNS.
Adding "/usr/share/applications/org.gnome.{fileName}" for example
will search for desktop files which are prefixed with "org.gnome."
inside "/usr/share/applications".
If you want LWSM to ignore the application, you can add
the application to the ignore list in ~/.lwsm/config.json which
is located under the WM_CLASS_EXCLUSIONS property.
If everything fails please open up an issue at:
https://github.com/johannesjo/linux-window-session-manager/issues
undefined
findDesktopFile cant find file; searched patterns [ '/usr/share/applications/org.gnome.org.desktop',
'/home/schmunk/.local/share/applications/org.desktop',
'/home/schmunk/.local/share/applications/**/org.desktop',
'/home/schmunk/.gnome/apps//org.desktop',
'/home/schmunk/.gnome/apps//**/org.desktop',
'/usr/share/applications/org.desktop',
'/usr/share/applications/**/org.desktop',
'/usr/local/share/applications/org.desktop',
'/usr/local/share/applications/**/org.desktop',
'/usr/share/app-install/org.desktop',
'/usr/share/app-install/**/org.desktop',
'/home/schmunk/.config/autostart//org.desktop',
'/home/schmunk/.config/autostart//**/org.desktop' ]
util: Generic Error findDesktopFile cant find file; searched patterns undefined
util: [Arguments] { '0': 'findDesktopFile cant find file; searched patterns' }
Input Handler Error: No input for desktop file path for window "org.gnome.gedit.Org.gnome.gedit". Please fix this manually in config file for this session in ~/.lwsm/{currentSessionName}.json
LWSM was unable to guess the location of your executable/desktop file.
There are 3 things, that you can do now:
Either you can locate the executable or desktop file manually for
the application which isn't started (e.g. via the locate command),
and add it to ~/.lwsm/{currentSessionName}.json. If you want to
persist the mapping you might also want to open ~/.lwsm/config.json
and edit the WM_CLASS_AND_EXECUTABLE_FILE_MAP property by adding a
mapping for 'org.gnome.gedit.Org.gnome.gedit'.
If there is a desktop file for the application you might want
to add it's location to the DESKTOP_FILE_LOCATIONS property
in ~/.lwsm/config.json to make sure this folder is also searched
the next LWSM tries to guess an desktop file path.
If your applications tend to have a prefix or suffix, you can also
use DESKTOP_FILE_PATTERNS.
Adding "/usr/share/applications/org.gnome.{fileName}" for example
will search for desktop files which are prefixed with "org.gnome."
inside "/usr/share/applications".
If you want LWSM to ignore the application, you can add
the application to the ignore list in ~/.lwsm/config.json which
is located under the WM_CLASS_EXCLUSIONS property.
If everything fails please open up an issue at:
https://github.com/johannesjo/linux-window-session-manager/issues
undefined
saveSessionForDisplayToDb: no session file present yet for "broken", creating a new one...
SAVED SESSION: broken
> cat broken.json
{
"name": "broken",
"displaysCombinations": [
{
"id": "1600x900;2560x1440",
"windowList": [
{
"windowId": " 0x2e00006",
"windowIdDec": 48234502,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 11993,
"wmClassName": "qtpass.QtPass",
"x": 800,
"y": 577,
"width": 800,
"height": 815,
"simpleName": "QtPass",
"executableFile": "qtpass.desktop",
"desktopFilePath": "/usr/share/applications/qtpass.desktop"
},
{
"windowId": "0x320000a",
"windowIdDec": 52428810,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_FOCUSED"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 12009,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 1574,
"y": 4,
"width": 1332,
"height": 1417,
"simpleName": "Gnome-terminal",
"executableFile": "gnome-terminal"
},
{
"windowId": "0x3a00007",
"windowIdDec": 60817415,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 11994,
"wmClassName": "org.gnome.Nautilus.Org.gnome.Nautilus",
"x": -26,
"y": 517,
"width": 852,
"height": 904,
"simpleName": "gnome",
"executableFile": "org.desktop"
},
{
"windowId": "0x3600012",
"windowIdDec": 56623122,
"states": [
"_NET_WM_STATE_MAXIMIZED_HORZ",
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 11991,
"wmClassName": "evolution.Evolution",
"x": 0,
"y": 577,
"width": 1600,
"height": 815,
"simpleName": "Evolution",
"executableFile": "evolution.desktop"
},
{
"windowId": "0x4000001",
"windowIdDec": 67108865,
"states": [
"_NET_WM_STATE_MAXIMIZED_HORZ",
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmTitle": "\"Wavebox | WhatsApp\"",
"wmClassName": "wavebox.wavebox",
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 11995,
"x": 0,
"y": 577,
"width": 1600,
"height": 815,
"simpleName": "wavebox",
"executableFile": "wavebox.desktop",
"desktopFilePath": "/usr/share/applications/wavebox.desktop"
},
{
"windowId": "0x5200003",
"windowIdDec": 85983235,
"wmCurrentDesktopNr": 1,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 13276,
"wmClassName": "Navigator.Firefox",
"x": 1600,
"y": 64,
"width": 1280,
"height": 1328,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x6600001",
"windowIdDec": 106954753,
"states": [
"_NET_WM_STATE_MAXIMIZED_HORZ",
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmTitle": "\"Untitled• - Typora\"",
"wmClassName": "typora.Typora",
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 14404,
"x": 0,
"y": 577,
"width": 1600,
"height": 815,
"simpleName": "Typora",
"executableFile": "typora.desktop",
"desktopFilePath": "/usr/share/applications/typora.desktop"
},
{
"windowId": "0x5800163",
"windowIdDec": 92275043,
"wmCurrentDesktopNr": 0,
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmPid": 13368,
"wmClassName": "sun-awt-X11-XFramePeer.jetbrains-phpstorm",
"x": 2880,
"y": 64,
"width": 1280,
"height": 1328,
"simpleName": "jetbrains-phpstorm",
"executableFile": "phpstorm"
},
{
"windowId": "0x5800525",
"windowIdDec": 92276005,
"wmCurrentDesktopNr": 3,
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"states": [
"_NET_WM_STATE_MAXIMIZED_HORZ",
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmPid": 13368,
"wmClassName": "sun-awt-X11-XFramePeer.jetbrains-phpstorm",
"x": 1600,
"y": 64,
"width": 2560,
"height": 1328,
"simpleName": "jetbrains-phpstorm",
"executableFile": "phpstorm"
},
{
"windowId": "0x58005d4",
"windowIdDec": 92276180,
"wmCurrentDesktopNr": 2,
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmPid": 13368,
"wmClassName": "sun-awt-X11-XFramePeer.jetbrains-phpstorm",
"x": 1600,
"y": 64,
"width": 1517,
"height": 1328,
"simpleName": "jetbrains-phpstorm",
"executableFile": "phpstorm"
},
{
"windowId": "0x4400018",
"windowIdDec": 71303192,
"states": [],
"wmCurrentDesktopNr": 0,
"wmTitle": "\"Strange gnome WM_CLASS names · Issue #42 · johannesjo/linux-window-session-manager - Chromium\"",
"wmClassName": "chromium.Chromium",
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 11997,
"x": 1600,
"y": 64,
"width": 1280,
"height": 1328,
"simpleName": "Chromium",
"executableFile": "chromium.desktop",
"desktopFilePath": "/usr/share/applications/chromium.desktop"
},
{
"windowId": "0x6400101\n",
"windowIdDec": 104857857,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 18244,
"wmClassName": "org.gnome.gedit.Org.gnome.gedit",
"x": 774,
"y": 517,
"width": 852,
"height": 904,
"simpleName": "gnome",
"executableFile": "org.desktop"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment