
# Refine
Tweak various aspects of GNOME
## Contributing
This project follows the [GNOME Code of Conduct](https://wiki.gnome.org/Foundation/CodeOfConduct).
## Development
### Flatpak
Add the [GNOME Nightly](https://wiki.gnome.org/Apps/Nightly) repository:
**System**
```bash
flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
```
**User**
```bash
flatpak remote-add --if-not-exists --user gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
```
#### GNOME Builder
The recommended method is to use GNOME Builder:
1. Install [GNOME Builder](https://apps.gnome.org/app/org.gnome.Builder/) from Flathub
2. Open Builder and select "Clone Repository…"
3. Clone `https://gitlab.gnome.org/TheEvilSkeleton/Refine.git` (or your fork)
4. Press "Run Project" (▶) at the top, or `Ctrl`+`Shift`+`[Spacebar]`.
#### Flatpak Builder
1. Install [`org.flatpak.Builder`](https://github.com/flathub/org.flatpak.Builder) from Flathub
```bash
flatpak install org.flatpak.Builder
```
2. Clone the repository (or your fork)
```bash
git clone https://gitlab.gnome.org/TheEvilSkeleton/Refine.git
```
3. To build, run the following in a terminal from the root of the repository:
```bash
flatpak run org.flatpak.Builder --force-clean --install --user build-dir build-aux/page.tesk.Refine.Devel.json
```
4. To launch Refine, run:
```bash
flatpak run page.tesk.Refine.Devel
```
### Meson
You can build and install on your host system by directly using the Meson buildsystem:
1. Install `blueprint-compiler`
2. Run the following commands (with `/usr` prefix):
```bash
meson --prefix=/usr build
ninja -C build
sudo ninja -C build install
```
Refine-0.7.1/build-aux/ 0000775 0000000 0000000 00000000000 15142221233 0014614 5 ustar 00root root 0000000 0000000 Refine-0.7.1/build-aux/dconf-override.patch 0000664 0000000 0000000 00000001557 15142221233 0020553 0 ustar 00root root 0000000 0000000 diff --git a/engine/dconf-engine-source-user.c b/engine/dconf-engine-source-user.c
index 1657875..e4f8786 100644
--- a/engine/dconf-engine-source-user.c
+++ b/engine/dconf-engine-source-user.c
@@ -39,11 +39,17 @@ dconf_engine_source_user_open_gvdb (const gchar *name)
{
GvdbTable *table;
gchar *filename;
+ const gchar *override;
+
+ override = g_getenv ("DCONF_USER_CONFIG_DIR");
+ if (override == NULL)
+ filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
+ else
+ filename = g_build_filename (g_get_home_dir (), override, name, NULL);
/* This can fail in the normal case of the user not having any
* settings. That's OK and it shouldn't be considered as an error.
*/
- filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
table = gvdb_table_new (filename, FALSE, NULL);
g_free (filename);
Refine-0.7.1/build-aux/page.tesk.Refine.Devel.json 0000664 0000000 0000000 00000005026 15142221233 0021640 0 ustar 00root root 0000000 0000000 {
"id": "page.tesk.Refine.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "refine",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--talk-name=ca.desrt.dconf",
"--talk-name=org.freedesktop.Flatpak",
"--filesystem=xdg-run/dconf",
"--filesystem=xdg-config/dconf",
"--filesystem=host-os:ro",
"--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/",
"--device=dri"
],
"cleanup": [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules": [
{
"name": "libportal",
"buildsystem": "meson",
"config-opts": [
"-Dtests=false",
"-Dbackend-gtk3=disabled",
"-Dbackend-gtk4=enabled",
"-Dbackend-qt5=disabled",
"-Ddocs=false"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/flatpak/libportal/releases/download/0.9.1/libportal-0.9.1.tar.xz",
"sha256": "de801ee349ed3c255a9af3c01b1a401fab5b3fc1c35eb2fd7dfb35d4b8194d7f"
}
]
},
{
"name": "dconf",
"buildsystem": "meson",
"config-opts": [
"-Dbash_completion=false",
"-Dman=false"
],
"cleanup": [
"/include",
"/lib/pkgconfig",
"/libexec",
"/share/dbus-1"
],
"sources": [
{
"type": "archive",
"url": "https://download.gnome.org/sources/dconf/0.49/dconf-0.49.0.tar.xz",
"sha256": "16a47e49a58156dbb96578e1708325299e4c19eea9be128d5bd12fd0963d6c36"
},
{
"type": "patch",
"path": "dconf-override.patch"
}
]
},
{
"name": "refine",
"builddir": true,
"buildsystem": "meson",
"config-opts": [
"-Dprofile=development"
],
"sources": [
{
"type": "dir",
"path": "../"
}
]
}
]
}
Refine-0.7.1/data/ 0000775 0000000 0000000 00000000000 15142221233 0013633 5 ustar 00root root 0000000 0000000 Refine-0.7.1/data/data.gresource.xml.in 0000664 0000000 0000000 00000003046 15142221233 0017673 0 ustar 00root root 0000000 0000000