ActivityWatch / aw-watcher-window-wayland

Window and AFK watcher for some Wayland compositors
Mozilla Public License 2.0
57 stars 14 forks source link

Don't create a directory instead of the lock file #6

Closed nsailor closed 4 years ago

nsailor commented 4 years ago

Really excited to see ActivityWatch working with sway! :smiley:

Running the watcher on my system fails with a panic however, as the program tries to create the file lock at the path of a newly created directory.

By appending the client name to the path after creating the locks directory, this little bug is fixed.

My editor also formatted the file with rustfmt but I can undo the formatting if necessary.

johan-bjareholt commented 4 years ago

Looks good, thanks!

If you find any more issues please report them. There are likely more considering that you are the only user except for me who uses this watcher.

fabien-michel commented 4 years ago

I missed activity watch since my switch to sway. Thanks to sway 1.5 recent release, i've started using this watcher today.