From 99e2be650b3b4e25885da1b67b2054967c77b043 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 4 Jan 2021 01:14:38 -0400 Subject: [PATCH] Install default config into $PREFIX/share/examples --- docs/CONFIG.md | 5 +++-- mirage.pro | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 31c8c4f9..25f4b04c 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -39,8 +39,9 @@ the application's behavior. The default `settings.py`, used when no user-written file exists, documents all the possible options and can be found at: -- [`src/config/settings.py`][1] in the repository -- `/usr/share/examples/mirage/settings.py` on Linux installations +- [`src/config/settings.py`][1] in this repository +- `/usr/local/share/examples/mirage/settings.py` or + `/usr/share/examples/mirage/settings.py` on Linux installations - `~/.local/share/flatpak/app/io.github.mirukana.mirage/current/active/files/share/examples/mirage/settings.py` for per-user Flatpak installations - `/var/lib/flatpak/app/io.github.mirukana.mirage/current/active/files/share/examples/mirage/settings.py` for system-wide Flatpak installations diff --git a/mirage.pro b/mirage.pro index f188764d..2febc543 100644 --- a/mirage.pro +++ b/mirage.pro @@ -66,7 +66,10 @@ no-x11 { icons256.path = $$PREFIX/share/icons/hicolor/256x256/apps icons256.files = packaging/mirage.png - INSTALLS += executables shortcuts icons256 + examples.path = $$PREFIX/share/examples/mirage + examples.files = src/config/settings.py + + INSTALLS += executables shortcuts icons256 examples } !dev:win32 {