aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 15:47:36 -0300
committerNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 15:47:36 -0300
commitd6456e4357a1d2f1480f4ac14e1e00ddba2644b4 (patch)
tree7d5cbd5b2d0f789207d129c048eff00f4d272a73
parent94326a8cad79aad2fd89d45503ada0455d644756 (diff)
cleanup & change binary name to rosenrot
-rw-r--r--TODO.md6
-rw-r--r--config.h2
-rw-r--r--makefile44
-rwxr-xr-xrosenrot (renamed from rose)bin40176 -> 40176 bytes
-rwxr-xr-xrosenrot-mklink (renamed from rose-mklink)4
-rw-r--r--rosenrot.c (renamed from rose.c)0
-rw-r--r--user-scripts/debian-12/install-with-dependencies.sh4
-rwxr-xr-xuser-scripts/debian-12/rosenrot.desktop (renamed from user-scripts/debian-12/rose.desktop)0
-rw-r--r--user-scripts/ubuntu-20.04/README.md2
9 files changed, 31 insertions, 31 deletions
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`](<https://webkitgtk.org/reference/webkit2gtk/2.36.8/WebKitWebContext.html#webkit-web-context-set-sandbox-enabled>), as recommended [here](<https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/>)
- [ ] Use something other than Whatsapp as an example syslink.
- [ ] Fix bug about distorted audio. Maybe related to [this pipewire issue](<https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1547>)?
-- [ ] 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: <https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkwidget-event-signals>. <https://github.com/mini-rose/rose-browser/blob/288bf060d095c4895946669ae50d14193168b69c/src/window.c#L42>
- [ ] 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`](<https://webkitgtk.org/reference/webkit2gtk/2.36.8/WebKitWebContext.html#webkit-web-context-set-sandbox-enabled>), as recommended [here](<https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/>)~~. 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: <https://github.com/qutebrowser/qutebrowser#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
index f3c043b..cb3f6a0 100755
--- a/rose
+++ b/rosenrot
Binary files differ
diff --git a/rose-mklink b/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 <alias> <url>" \
+ printf "%s\n" "usage: rosenrot-mklink <alias> <url>" \
"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
index 34a74ad..34a74ad 100644
--- a/rose.c
+++ b/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
index c970b7a..c970b7a 100755
--- a/user-scripts/debian-12/rose.desktop
+++ b/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.