bithavoc / node-desktop-idle Goto Github PK
View Code? Open in Web Editor NEWNode/Electron module to detect idle desktop user (macOS, Windows, Linux, FreeBSD and OpenBSD)
License: MIT License
Node/Electron module to detect idle desktop user (macOS, Windows, Linux, FreeBSD and OpenBSD)
License: MIT License
Are there any specific reasons as to why only x86 architectures are listed as supported?
Would it be possible to add support for arm-based architectures in the future?
Cheers,
Ghis
When trying to install desktop-idle on Windows with npm I get the following error:
Unsupported platform for [email protected]: wanted {"os":"windows,linux,darwin","arch":"x64"} (current: {"os":"win32","arch":"x64"})
node_modules\desktop-idle\build\Release\desktopIdle.node is not a valid Win32
how to fix it? i develop on my linux.
Help me please, thanks
Hi, This module install successfully but when i use it and run with npm start application throw below error message in terminal. Please help to resolve this issue. I need this module to use in my electron application. I am using it in OSX.
dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/balakrishna/electron-quick-start/node_modules/desktop-idle/build/Release/desktopIdle.node
Expected in: flat namespace
dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/balakrishna/electron-quick-start/node_modules/desktop-idle/build/Release/desktopIdle.node
Expected in: flat namespace
Hello!
Can you please add the info that in some cases one need to rebuild the native module for electron to match the node version provided with electron?
node-gyp rebuild --target=1.7.10 --arch=x64 --dist-url=https://atom.io/download/atom-shell
Also referencing this doc will be helpful.
node-gyp only supports python 2.X, can you find a way to create an installer using something else?
Hello bithavoc, thanks for the nice pkg, was exactly what I was looking for.
But trying to run this on linux for some days now:
var desktopIdle = require('desktop-idle')
setInterval(function() {
console.log(desktopIdle.getIdleTime())
}, 1000)
Keeps (after some seconds, failing into this):
┏ Electron -------------------
1
┗ ----------------------------
┏ Electron -------------------
Maximum number of clients reached
┗ ----------------------------
....
Keeps repeating "1", fills ram and crash PC... HAVOC ! ! heh.
Tried running it from node and from window, same behavior.
Any help much appreciated, thank you!
Hey there,
Great work on the package. I used your native module on my Electron App and it works perfectly well during development, but as soon as i try to package your Native Module from a non target OS,
i.e Packaging for Windows from a Mac machine. The resulting executable fails to run on Windows and shows the following error, the error varies according to the ASAR setting.
This is a well known issue amongst people who try to package for all platforms from a single platform. There are many hacks and solutions to make this work however, the most promising one
is perhaps https://www.npmjs.com/package/prebuild which lets you generate prebuilt binaries
for the different platforms. Will help a lot of folks like me.
Is this something you'll be looking into at some point or are you already working on it?
Thanks again.
Hi - I tried using your lib in an electron build / angular application but I fail ...
"electron": "^3.0.2",
"electron-builder": "^20.28.4",
"electron-reload": "^1.2.5",
Electron: (process.versions)
{ http_parser: '2.8.0',
node: '10.2.0',
v8: '6.6.346.32',
uv: '1.20.3',
zlib: '1.2.11',
ares: '1.14.0',
modules: '64',
nghttp2: '1.29.0',
napi: '3',
openssl: '1.1.0h',
electron: '3.0.2',
chrome: '66.0.3359.181' }
c:_Entwicklung\Mattermost\matter-mon>node -v
v10.11.0
c:_Entwicklung\Mattermost\matter-mon>npm -v
6.4.1
I already rebuild it with node 10 "npm i desktop-idle" but always get this error ...
Getting the following error while importing this package in the renderer process - Loading non-context-aware native module in renderer:
Electron Version 15.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.