File tree 4 files changed +39
-8
lines changed
4 files changed +39
-8
lines changed Original file line number Diff line number Diff line change 3
3
> [ ![ Build Status] ( https://travis-ci.org/bithavoc/node-desktop-idle.svg?branch=master )] ( https://travis-ci.org/bithavoc/node-desktop-idle )
4
4
> [ ![ Monthly Downloads] ( https://img.shields.io/npm/dm/desktop-idle.svg )] ( https://www.npmjs.com/package/desktop-idle )
5
5
6
- Node/Electron module to detect idle desktop users (OSX, Windows and Linux ).
6
+ Node/Electron module to detect idle desktop users (OSX, Windows, Linux and FreeBSD ).
7
7
8
8
** Stable | Actively maintained | Pull Requests Welcome**
9
9
Original file line number Diff line number Diff line change 42
42
}
43
43
],
44
44
[
45
+ 'OS=="freebsd"' ,
46
+ {
47
+ "sources" : [
48
+ "src/linux/idle.cc"
49
+ ],
50
+ "variables" : {
51
+ "pkg-config" : "pkg-config"
52
+ },
53
+ "sources" : [
54
+ "src/linux/idle.cc"
55
+ ],
56
+ "include_dirs" : [
57
+ "/usr/local/include"
58
+ ],
59
+ "direct_dependent_settings" : {
60
+ "cflags" : [
61
+ "<!@(<(pkg-config) --cflags x11 xext xscrnsaver)" ,
62
+ ],
63
+ },
64
+ "link_settings" : {
65
+ "ldflags" : [
66
+ "<!@(<(pkg-config) --libs-only-other --libs-only-L x11 xext xscrnsaver)" ,
67
+ ],
68
+ "libraries" : [
69
+ "<!@(<(pkg-config) --libs-only-l x11 xext xscrnsaver)" ,
70
+ ]
71
+ }
72
+ }
73
+ ],
74
+ [
45
75
'OS=="win"' ,
46
76
{
47
77
"sources" : [
58
88
]
59
89
}
60
90
]
61
- }
91
+ }
Original file line number Diff line number Diff line change 15
15
],
16
16
"homepage" : " https://github.com/bithavoc/node-desktop-idle" ,
17
17
"licenses" : [
18
- {
19
- "type" : " MIT" ,
20
- "url" : " https://github.com/bithavoc/node-desktop-idle/blob/master/LICENSE"
21
- }
18
+ {
19
+ "type" : " MIT" ,
20
+ "url" : " https://github.com/bithavoc/node-desktop-idle/blob/master/LICENSE"
21
+ }
22
22
],
23
23
"repository" : {
24
24
"type" : " git" ,
28
28
" windows" ,
29
29
" linux" ,
30
30
" darwin" ,
31
- " win32"
31
+ " win32" ,
32
+ " freebsd"
32
33
],
33
34
"engines" : {
34
35
"node" : " >=7.9.0"
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ double desktop_idle_get_time() {
11
11
unsigned long idle = info->idle ;
12
12
XFree (info);
13
13
XCloseDisplay (dpy);
14
- return idle / 1000 ; // to seconds
14
+ return idle / 1000.0 ; // to seconds
15
15
}
You can’t perform that action at this time.
0 commit comments