#!/bin/bash

USER_NAME=$(whoami)

# Common paths to check
paths=(
    "/var/lib/AccountsService/icons/$USER_NAME"
    "$HOME/.face"
    "$HOME/.face.icon"
)

for path in "${paths[@]}"; do
    if [ -f "$path" ]; then
        echo "$path"
        exit 0
    fi
done

# Nothing found — exit silently or optionally with an error code
exit 0
