diff --git a/TODO.md b/TODO.md index 63ec9f2..4092c47 100644 --- a/TODO.md +++ b/TODO.md @@ -3,21 +3,21 @@ ## Quality of life: - [ ] Document creating new applications, e.g., as in [Asana for Linux](https://git.nunosempere.com/NunoSempere/asana-for-linux) -- [ ] Set [`webkit_web_context_set_sandbox_enabled`](), as recommended [here]() - [ ] Use something other than Whatsapp as an example syslink. - [ ] Fix bug about distorted audio. Maybe related to [this pipewire issue]()? -- [ ] Upgrade to GTK-4 / Webkitgtk 6.0? Will take a fair amount of time, since these are not available on Ubuntu 20.04. +- [ ] Upgrade to GTK-4 / Webkitgtk 6.0? Will take a fair amount of time, since GTK4 redesigns the application model somewhat. - Instructions for webkit-6.0 [here](https://github.com/WebKit/WebKit/blob/ed1422596dce5ff012e64a38faf402ac1674fc7e/Source/WebKit/gtk/migrating-to-webkitgtk-6.0.md) - Instructions for GTK-4 [here](https://docs.gtk.org/gtk4/migrating-3to4.html) - [ ] Prepare for GTK-3 to GTK-4 transition - [ ] Understand wtf is going on with signals and events: . - [ ] Remove webkit2gtk-4.1 and download webkit2gtk-6.0 - [ ] Attempt to compile - - [ ] Change README and point to last Ubuntu 20.04 commit # Previously done +- ~~[ ] Set [`webkit_web_context_set_sandbox_enabled`](), as recommended [here]()~~. Irrelevant with upgrade to libsoup3. - [x] Update to webkit2gtk-4.1 + - [x] Change README and point to last Ubuntu 20.04 commit - [x] Add list of similar projects: - [x] Add comparisons against rose & surf - [x] Compare against rose diff --git a/config.h b/config.h index 4dc8ca6..b29cc02 100644 --- a/config.h +++ b/config.h @@ -43,7 +43,7 @@ To remove plugins completely; "enable-smooth-scrolling", false, \ "default-charset", "utf-8" /* CACHE */ -#define DATA_DIR "/home/nuno/.cache/rose" +#define DATA_DIR "/home/nuno/.cache/rosenrot" #define DATA_MANAGER_OPTS "base-cache-directory", DATA_DIR, "base-data-directory", DATA_DIR // GTK diff --git a/makefile b/makefile index 03c8129..a6d3a93 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ INCS=`pkg-config --cflags ${DEPS}` LIBS=`pkg-config --libs ${DEPS}` # Code -SRC=rose.c +SRC=rosenrot.c CONFIG=config.h ## Plugins @@ -31,8 +31,8 @@ FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) # Change hardcoded paths when building ## Data dirs USER=`whoami` -DEFAULT_DATA_DIR=/home/nuno/.cache/rose -USER_DATA_DIR=/home/$(USER)/.cache/rose +DEFAULT_DATA_DIR=/home/nuno/.cache/rosenrot +USER_DATA_DIR=/home/$(USER)/.cache/rosenrot ## Startup image dir DEFAULT_DIR=/home/nuno/Documents/workspace/rosenrot CURRENT_DIR=`pwd` @@ -51,50 +51,50 @@ build: $(SRC) $(PLUGINS) $(CONFIG) sed -i "s|$(DEFAULT_DIR)|$(CURRENT_DIR)|g" {} + # Compile rosenrot GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ - $(CC) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rose $(LIBS) $(ADBLOCK) + $(CC) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK) -install: rose +install: rosenrot GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ - cp -f rose /usr/bin - mkdir -p /usr/share/themes/rose - cp style.css /usr/share/themes/rose/ - cp rose-mklink /usr/bin - sudo mkdir -p /usr/bin/rose-browser - sudo cp rose /usr/bin/rose-browser/twitter # custom twitter tweaks + cp -f rosenrot /usr/bin + mkdir -p /usr/share/themes/rosenrot + cp style.css /usr/share/themes/rosenrot/ + cp rosenrot-mklink /usr/bin + sudo mkdir -p /usr/bin/rosenrot-browser + sudo cp rosenrot /usr/bin/rosenrot-browser/twitter # custom twitter tweaks uninstall: - rm -r /usr/share/themes/rose - rm /usr/bin/rose - rm /usr/bin/rose-mklink + rm -r /usr/share/themes/rosenrot + rm /usr/bin/rosenrot + rm /usr/bin/rosenrot-mklink rm $(DATA_DIR) clean: - rm rose + rm rosenrot rm $(DATA_DIR) format: $(SRC) $(PLUGINS) - $(FORMATTER) $(SRC) $(PLUGINS) $(rose.h) + $(FORMATTER) $(SRC) $(PLUGINS) $(rosenrot.h) lint: - clang-tidy $(SRC) $(PLUGINS) -- -Wall -O3 `pkg-config --cflags 'webkit2gtk-4.1'` -o rose `pkg-config --libs 'webkit2gtk-4.1'` + clang-tidy $(SRC) $(PLUGINS) -- -Wall -O3 `pkg-config --cflags 'webkit2gtk-4.1'` -o rosenrot `pkg-config --libs 'webkit2gtk-4.1'` ## A few more commands: fast: $(SRC) $(PLUGINS) $(CONFIG) rm -f *.gcda GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ - $(CC) $(WARNINGS) $(OPTIMIZED_MORE) -fprofile-generate $(INCS) $(PLUGINS) $(SRC) -o rose $(LIBS) $(ADBLOCK) + $(CC) $(WARNINGS) $(OPTIMIZED_MORE) -fprofile-generate $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK) @echo "Now use the browser for a while to gather some profiling data" sleep 2 - ./rose - $(CC) $(WARNINGS) $(OPTIMIZED_MORE) -fprofile-use $(INCS) $(PLUGINS) $(SRC) -o rose $(LIBS) $(ADBLOCK) + ./rosenrot + $(CC) $(WARNINGS) $(OPTIMIZED_MORE) -fprofile-use $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK) rm -f *.gcda inspect: build - GTK_DEBUG=interactive ./rose + GTK_DEBUG=interactive ./rosenrot diagnose_deprecations: - G_ENABLE_DIAGNOSTIC=1 ./rose + G_ENABLE_DIAGNOSTIC=1 ./rosenrot view-gtk3-version: dpkg -l libgtk-3-0 diff --git a/rose b/rosenrot similarity index 93% rename from rose rename to rosenrot index f3c043b..cb3f6a0 100755 Binary files a/rose and b/rosenrot differ diff --git a/rose-mklink b/rosenrot-mklink similarity index 68% rename from rose-mklink rename to rosenrot-mklink index f016aae..d8f5be6 100755 --- a/rose-mklink +++ b/rosenrot-mklink @@ -1,7 +1,7 @@ #!/bin/sh test "$1" = "--help" || test -z "$1" && { - printf "%s\n" "usage: rose-mklink " \ + printf "%s\n" "usage: rosenrot-mklink " \ "Create a /usr/bin link to a website." exit } @@ -12,6 +12,6 @@ test -z "$2" || { exit 1 } - printf "#!/bin/sh\n\nrose %s" "$2" > /usr/bin/$1 + printf "#!/bin/sh\n\nrosenrot %s" "$2" > /usr/bin/$1 chmod +x /usr/bin/$1 } diff --git a/rose.c b/rosenrot.c similarity index 100% rename from rose.c rename to rosenrot.c diff --git a/user-scripts/debian-12/install-with-dependencies.sh b/user-scripts/debian-12/install-with-dependencies.sh index 60e716e..aa68f09 100644 --- a/user-scripts/debian-12/install-with-dependencies.sh +++ b/user-scripts/debian-12/install-with-dependencies.sh @@ -21,5 +21,5 @@ sudo make install cd - # Debian desktop icon -chmod +x rose.desktop -sudo cp rose.desktop /usr/share/applications +chmod +x rosenrot.desktop +sudo cp rosenrot.desktop /usr/share/applications diff --git a/user-scripts/debian-12/rose.desktop b/user-scripts/debian-12/rosenrot.desktop similarity index 100% rename from user-scripts/debian-12/rose.desktop rename to user-scripts/debian-12/rosenrot.desktop diff --git a/user-scripts/ubuntu-20.04/README.md b/user-scripts/ubuntu-20.04/README.md index 5fcc6f4..c0070c9 100644 --- a/user-scripts/ubuntu-20.04/README.md +++ b/user-scripts/ubuntu-20.04/README.md @@ -1 +1 @@ -Code here uses the libwebkit2gtk-4.0 api. It is deprecated. See the debian version for how to use the -4.1 version instead. Package names might vary. +Code in this directory refers to a previous version of rosenrot which used the libwebkit2gtk-4.0 api. It is deprecated. See the debian folder for how to use the -4.1 version instead. Package names might vary.