Associate with mime type
This allows to e.g. import vcards received via bluetooth right away.
This commit is contained in:
parent
9bec70f81c
commit
9d0fb24f83
|
@ -6,7 +6,11 @@
|
|||
|
||||
#Selecting a file
|
||||
|
||||
FILE=`yad --title "Import Contacts" --text="Select a VCF file to import" --file=`
|
||||
if [ -n "$1" ]; then
|
||||
FILE="$1"
|
||||
else
|
||||
FILE=`yad --title "Import Contacts" --text="Select a VCF file to import" --file=`
|
||||
fi
|
||||
|
||||
if [ "$FILE" == "" ]; then
|
||||
`yad --title "Import Contacts" --text="You did not selected any file"` exit 1
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
Name=Contacts Importer
|
||||
Type=Application
|
||||
Icon=preferences-desktop-personal
|
||||
Exec=/usr/bin/contacts-importer
|
||||
Exec=/usr/bin/contacts-importer %U
|
||||
Categories=Utility;
|
||||
MimeType=text/x-vcard;
|
||||
|
|
Loading…
Reference in New Issue