initial commit
This commit is contained in:
commit
97dd8da178
11 files changed
+480
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# Register the native messaging host with Firefox for the current user.
|
||||
set -euo pipefail
|
||||
|
||||
HOST_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
HOST_SCRIPT="$HOST_DIR/quick_profile_host.py"
|
||||
MANIFEST_DIR="$HOME/.mozilla/native-messaging-hosts"
|
||||
|
||||
chmod +x "$HOST_SCRIPT"
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
|
||||
cat > "$MANIFEST_DIR/quick_profile.json" <<EOF
|
||||
{
|
||||
"name": "quick_profile",
|
||||
"description": "Quick Profile native host",
|
||||
"path": "$HOST_SCRIPT",
|
||||
"type": "stdio",
|
||||
"allowed_extensions": ["quick-profile@timothykim"]
|
||||
}
|
||||
EOF
|
||||
|
||||
echo "Installed $MANIFEST_DIR/quick_profile.json -> $HOST_SCRIPT"
|
||||
Reference in new issue
Block a user