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

How to install pyinotify in Windows to enable inotify? #160

Closed
THPubs opened this issue May 23, 2015 · 11 comments
Closed

How to install pyinotify in Windows to enable inotify? #160

THPubs opened this issue May 23, 2015 · 11 comments

Comments

@THPubs
Copy link

THPubs commented May 23, 2015

How can we install pyinotify in windows and enable inotify? Is there any installer? Is it possible to package it along with syncthing gtk?

PS : Sorry if im opening too many issues :-)

@kozec
Copy link
Owner

kozec commented May 23, 2015

inotify is Linux-specific thing, not supported on Windows.

@THPubs
Copy link
Author

THPubs commented May 24, 2015

@kozec Ah ok. Any alternatives for Windows?

@Zillode
Copy link

Zillode commented May 24, 2015

@THPubs you can run syncthing-inotify
@kozec Are you open to embed syncthing-inotify in syncthing-gtk? I'd like to have it tested by more ppl before proposing a merge with the main syncthing project.

@kozec
Copy link
Owner

kozec commented May 24, 2015

@kozec Are you open to embed syncthing-inotify in syncthing-gtk? I'd like to have it tested by more ppl before proposing a merge with the main syncthing project.

Sounds like good idea; is it possible to configure it to watch only some directories?

edit:
I see, -folders parameter. I'll check how it will do next time I'll be on Windows. Thanks for suggestion.

@Zillode
Copy link

Zillode commented May 24, 2015

The -home parameter might also be of interest. Just link it to the config dir and it will sniff the api key (which is all st-inotify needs)

edit: will tag the current master as v0.6.2 as soon as https://github.com/syncthing/syncthing-inotify/issues/58 gives a 👍

@kozec
Copy link
Owner

kozec commented May 24, 2015

@Zillode Just to check, will 32bit syncthing-inotify have any problem with 64bit syncthing daemon? ST-GTK has only 32bit installer for Windows, so bundling 64bit syncthing-inotify exacutable would be... Not exactly problem, but more trouble than I think is necessary.

@Zillode
Copy link

Zillode commented May 24, 2015

I never tried it but all communication is based on http requests, so I think it'll work.
If you only bundle a 64bit syncthing you could also opt for the 64bit inotify. If you bundle dynamically, feel free use the 32bit.

@kozec
Copy link
Owner

kozec commented May 25, 2015

@Zillode Ok, it pretty-much works, but I have problem with capturing syncthing-inotify output. Is it doing anything that may prevent reading from its stdout, when it's started as background process?

@Zillode
Copy link

Zillode commented May 25, 2015

Not that I know of, all output is written to os.Stdout. The exit codes are documented in the FAQ: https://github.com/syncthing/syncthing-inotify/wiki/FAQ

@kozec
Copy link
Owner

kozec commented Jun 1, 2015

@THPubs So, ST-GTK now includes syncthing-inotify v0.6.3 in latest release. It would be great if you could give it a test and tell me if it works on more than single (my own :) machine.

@THPubs
Copy link
Author

THPubs commented Jun 3, 2015

@kozec I think it works! :-) Didn't do too many tests... Just added one file and deleted one file... Both worked :-) Thanks for the quick fix!

Repository owner locked and limited conversation to collaborators Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants