commit de04b1788232dab669d2026c101a686199a97c7c from: Omar Polo date: Fri Nov 26 10:42:55 2021 UTC [xdg] move pages path under $XDG_DATA_HOME instead of CONFIG_HOME OK andrea commit - 22dc1cafc5e7e254b7b78d68e95d0958438ec523 commit + de04b1788232dab669d2026c101a686199a97c7c blob - 79a734da3fd082f4e974a0d403a049261db88678 blob + d44e546e4ac97c04db35a0d878c20262c8b287d6 --- contrib/xdg-migrate.sh +++ contrib/xdg-migrate.sh @@ -18,7 +18,7 @@ mkdir -p "$xdg_config" "$xdg_data" "$xdg_cache" for filepath in \ "$xdg_config/config" \ - "$xdg_config/pages" \ + "$xdg_data/pages" \ "$xdg_data/bookmarks.gmi" \ "$xdg_data/known_hosts" do blob - f1886e6a9e17884a9a70e5ee83f284381102114d blob + 7a598695365327d2d25245d1484abb96db8ce5bf --- fs.c +++ fs.c @@ -155,7 +155,7 @@ handle_get(struct imsg *imsg, size_t datalen) if (page == NULL) goto notfound; - strlcpy(path, config_path_base, sizeof(path)); + strlcpy(path, data_path_base, sizeof(path)); strlcat(path, "/", sizeof(path)); if (page->path != NULL) strlcat(path, page->path, sizeof(path)); blob - b29b85415704dfea07ae512b66885e20f79ea08e blob + 24c52e84eff877039fa4f4a69a4723ebd723d41c --- pages/about_help.gmi +++ pages/about_help.gmi @@ -67,7 +67,7 @@ By default Telescope doesn’t use colours too much in All the ‘about:*’ pages can be locally overridden. For example, to customise about:new create: -> ~/.config/telescope/pages/about_new.gmi +> ~/.local/share/telescope/pages/about_new.gmi about:bookmarks is the only page that doesn’t follow this pattern; it’s located at blob - e7a2ac9a5730db338f43a80301a8aafbc1ffc2ff blob + 0f1159851b403d778d102e3dfc0ce96215941607 --- telescope.1 +++ telescope.1 @@ -908,7 +908,7 @@ can further alter the location of these files. .Bl -tag -width Ds -compact .It Pa ~/.config/telescope/config Default configuration file. -.It Pa ~/.config/telescope/pages/about_*.gmi +.It Pa ~/.local/share/telescope/pages/about_*.gmi Overrides for built-in about: pages. .It Pa ~/.local/share/telescope/bookmarks.gmi Bookmarks file.