Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that still supported? Doesn't work on 18.10 for me. #43

Closed
NinjaTurtle007 opened this issue Jul 20, 2019 · 3 comments
Closed

Is that still supported? Doesn't work on 18.10 for me. #43

NinjaTurtle007 opened this issue Jul 20, 2019 · 3 comments

Comments

@NinjaTurtle007
Copy link

I updated it according to the instructions but doesn't work neither from the gnome extension or from the terminal.

Here is what trying to save a session outputs:

lwsm save test1 sudo: unable to resolve host user: Invalid argument 0x2000097 has no wmClassName. Win: { windowId: '0x2000097', windowIdDec: 33554583, states: [], wmType: '_NET_WM_WINDOW_TYPE_NORMAL' } Generic Error in Meta Wrapper TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> Generic Error in Meta Wrapper TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> Generic Error in Meta Wrapper TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> (node:11729) UnhandledPromiseRejectionWarning: TypeError: Path must be a string. Received null at assertPath (path.js:28:11) at Object.basename (path.js:1380:5) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:193:18) at new Promise (<anonymous>) at parseChromeAppDesktopFileName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:190:10) at Promise (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:166:9) at new Promise (<anonymous>) at parseExecutableFileFromWmClassName (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:158:10) at promises.push (/usr/local/lib/node_modules/linux-window-session-manager/lib/metaWrapper.js:136:18) at <anonymous> (node:11729) 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: 2) (node:11729) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@johannesjo
Copy link
Owner

Thanks for reporting. This should hopefully be fixed now.

@NinjaTurtle007
Copy link
Author

Yes indeed, it does work now but still throws out errors for widely useds apps like, telegram, keepassxc, calc, toggl, etc

Not sure why it struggles to find the desktop file for so many of them.

Here is an example of the error for one of the apps:

`indDesktopFile cant find file; searched patterns []
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 "telegram-desktop.TelegramDesktop". 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.
`

@johannesjo
Copy link
Owner

Sorry for the very late reply. If notice any missing apps, it would be really cool if you could provide a PR to this file:
https://github.com/johannesjo/linux-window-session-manager/blob/master/src/defaultConfig.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants