Unverified Commit 83212993 authored by Joao Azevedo's avatar Joao Azevedo
Browse files

initial upload of the version of the script

parent d528ad96
#!/bin/bash
function usage()
{
echo "Usage: $0, or just press the contacts exporter Icon in the app tray"
exit 0
}
case "$1" in
--help|-h|-?)
usage
;;
esac
CSV=$(cd /usr/libexec/evolution-data-server && ./addressbook-export --format=csv --output=/home/"$USER"/contacts-backup-"$(date +%Y-%m-%d-%H%M%S)".csv)
VCARD=$(cd /usr/libexec/evolution-data-server && ./addressbook-export --format=vcard --output=/home/"$USER"/contacts-backup-"$(date +%Y-%m-%d-%H%M%S)".vcf)
yad --title export_contacts --form \
--field='Export contacts as a vcard file!window-restore-symbolic':fbtn "$VCARD" \
--field='Export contacts as a csv file!window-restore-symbolic':fbtn "$CSV" \
--button='Close!gtk-cancel':1
# sed 's/^[^,]*,//'
[Desktop Entry]
Name=Scale Screen
Type=Application
Icon=video-display-symbolic
Exec=/usr/bin/l5-contacts-exporter %U
Categories=Utility;
# Translators: Do NOT translate or transliterate this text (these are enum types)!
X-Purism-FormFactor=Workstation;Mobile;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment