summarylogtreecommitdiffstats
path: root/thunderbird
diff options
context:
space:
mode:
authorgudzpoz2023-08-12 17:13:44 +0800
committergudzpoz2023-08-12 17:13:44 +0800
commitb4de9eaa95160462bcb8b626790b80eef707fa31 (patch)
tree8fc4856be3253759489d622dd9e9142c38cd3352 /thunderbird
downloadaur-profile-sync-daemon-thunderbird.tar.gz
Adapt config from that of firefox
Diffstat (limited to 'thunderbird')
-rw-r--r--thunderbird18
1 files changed, 18 insertions, 0 deletions
diff --git a/thunderbird b/thunderbird
new file mode 100644
index 000000000000..0877d3ae6826
--- /dev/null
+++ b/thunderbird
@@ -0,0 +1,18 @@
+if [[ -d "$HOME"/.thunderbird ]]; then
+ index=0
+ PSNAME="$browser"
+ while read -r profileItem; do
+ if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
+ # path is not relative
+ DIRArr[$index]="$profileItem"
+ else
+ # we need to append the default path to give a
+ # fully qualified path
+ DIRArr[$index]="$HOME/.thunderbird/$profileItem"
+ fi
+ (( index=index+1 ))
+ done < <(grep '[Pp]'ath= "$HOME"/.thunderbird/profiles.ini | sed 's/[Pp]ath=//')
+fi
+
+check_suffix=1
+