meta: Renamed project to convertablet

This commit is contained in:
Yuki Joou 2023-07-13 14:05:59 +02:00
parent c66c11a2b4
commit 86bc9dc363
3 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View file

@ -2,4 +2,4 @@ protocol/*.c
protocol/*.h
protocol/*.xml
*~
miix-wlr
convertablet

View file

@ -5,6 +5,6 @@ set -ex;
SOURCES="main.c output_manager.c accel_monitor.c usb_device_detection.c"
CFLAGS="-std=c2x -Wall -Wextra -pedantic $CFLAGS"
LIBS="-lwayland-client -lusb-1.0 protocol/wlr-output-management-unstable-v1.c"
OUTPUT=miix-wlr
OUTPUT=convertablet
clang $CFLAGS $LIBS $SOURCES -o $OUTPUT

4
main.c
View file

@ -31,10 +31,10 @@ static char* get_hook_path(char const* const hook_name)
char* path;
char* xdg_config_dir = getenv("XDG_CONFIG_HOME");
if (xdg_config_dir)
asprintf(&path, "%s/miix-wlr/hooks/%s-hook", xdg_config_dir, hook_name);
asprintf(&path, "%s/convertablet/hooks/%s-hook", xdg_config_dir, hook_name);
else
asprintf(&path,
"%s/.config/miix-wlr/hooks/%s-hook",
"%s/.config/convertablet/hooks/%s-hook",
getenv("HOME"),
hook_name);
return path;