Take one machine's fingerprints off everyone's desktop
The audit's second tier: values that were measurements of the author's desktop, shipped to every machine as if they were defaults. Settings greeted every human as Gabriel; it now greets whoever accountsservice says is signed in, and nobody when it says nothing. The weather shipped his home coordinates and confidently reported his forecast anywhere on earth; it now ships unset, fetches nothing until a location is chosen, and the location row says so. The GTK bookmarks carried seven /home/gib paths and his file server into every file dialog; they are now generated per machine from a template and gitignored -- Nautilus edits the instance freely, the way settings.ini already worked one file over. Web search routed through his personal bang redirector; the engine is now the webSearchUrl preference with a DuckDuckGo default, read by both the script command and the suggestions extension, which the launcher-search contract already pins to one another. The GPU vitals path defaulted to his card1 and lost the readout on any machine enumerated differently; a machine with exactly one GPU now adopts it. And the Containers and Snapshots pages hide once a scan proves their backing stack absent, instead of rendering permanently empty on machines that never had podman or snapper. Lesser residue swept in the same pass: the DP-2 hyprpaper block one machine needed, the author's username-typo expansions (moved to his personal seed in user/, where personal content belongs), a capture fallback into /home/gib, and a parity table asserting one machine's hardware as fact. Claude-Session: https://claude.ai/code/session_01Epx9ZC1gwm81K3jm9x9CKh
This commit is contained in:
@@ -6,7 +6,25 @@ import { Action, ActionPanel, Icon, List } from "@vicinae/api";
|
||||
// search engine to be bounced, and falls through to an ordinary search when
|
||||
// there is no bang. Bang support is a property of this URL, not of this
|
||||
// extension, which is why there is no bang parsing below.
|
||||
const ENGINE = "https://bang.gibbyb.com/?q=";
|
||||
// The engine is Panama's webSearchUrl preference (Applications page), the
|
||||
// same key the fallback script command reads -- launcher-search-contract pins
|
||||
// the two to one default. Read once per command launch; DuckDuckGo when the
|
||||
// preference is unset or unreadable.
|
||||
const DEFAULT_ENGINE = "https://duckduckgo.com/?q=";
|
||||
const ENGINE = (() => {
|
||||
try {
|
||||
const configHome =
|
||||
process.env.XDG_CONFIG_HOME || `${process.env.HOME}/.config`;
|
||||
const stored = JSON.parse(
|
||||
require("fs").readFileSync(`${configHome}/panama/settings.json`, "utf8"),
|
||||
).webSearchUrl;
|
||||
return typeof stored === "string" && stored.startsWith("https://")
|
||||
? stored
|
||||
: DEFAULT_ENGINE;
|
||||
} catch {
|
||||
return DEFAULT_ENGINE;
|
||||
}
|
||||
})();
|
||||
|
||||
// The suggestion endpoint Firefox's address bar uses. Answers with
|
||||
// [query, [suggestion, ...], ...] and needs no key.
|
||||
|
||||
@@ -25,5 +25,8 @@
|
||||
#
|
||||
# xdg-open rather than a named browser: the default browser is already a setting
|
||||
# this desktop owns, on the Applications page, and naming one here would quietly
|
||||
# outrank it.
|
||||
exec xdg-open "https://bang.gibbyb.com/?q=$1"
|
||||
# outrank it. The engine is the webSearchUrl preference (Applications page);
|
||||
# the shipped default asks DuckDuckGo, not somebody's personal redirector.
|
||||
search_url="$(jq -r '.webSearchUrl // empty' "${XDG_CONFIG_HOME:-$HOME/.config}/panama/settings.json" 2>/dev/null)"
|
||||
[ -n "$search_url" ] || search_url="https://duckduckgo.com/?q="
|
||||
exec xdg-open "${search_url}$1"
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
# @vicinae.mode silent
|
||||
# @vicinae.icon ../../icons/hicolor/scalable/apps/panama-settings.svg
|
||||
# @vicinae.description Open Applications in Settings.
|
||||
# @vicinae.keywords ["settings", "default applications"]
|
||||
# @vicinae.keywords ["settings", "web search engine", "default applications"]
|
||||
|
||||
exec "$HOME/.config/quickshell/scripts/panama-action" settings-page applications
|
||||
|
||||
Reference in New Issue
Block a user