Skip to content

Commit

Permalink
Use tmp file instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagab committed May 29, 2023
1 parent 8471f62 commit 8ffe640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <Carbon/Carbon.h>
// https://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html

const char *logfileLocation = "/var/log/rest_dummy";
const char *logfileLocation = "/tmp/rest_dummy";

CGEventRef CGEventCallback(CGEventTapProxy, CGEventType, CGEventRef, void*);
const char *convertKeyCode(int, bool, bool);
Expand Down
2 changes: 1 addition & 1 deletion rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

system('logger &')

DUMMY_PATH = '/var/log/rest_dummy'
DUMMY_PATH = '/tmp/rest_dummy'
PID_PATH = '/tmp/rest.pid'
FileUtils.touch(DUMMY_PATH) unless File.exist?(DUMMY_PATH)
FileUtils.touch(PID_PATH) unless File.exist?(PID_PATH)
Expand Down

0 comments on commit 8ffe640

Please sign in to comment.