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
2 changed files with 7 additions and 2 deletions
|
@ -6,7 +6,11 @@
|
||||||
|
|
||||||
#Selecting a file
|
#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
|
if [ "$FILE" == "" ]; then
|
||||||
`yad --title "Import Contacts" --text="You did not selected any file"` exit 1
|
`yad --title "Import Contacts" --text="You did not selected any file"` exit 1
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
Name=Contacts Importer
|
Name=Contacts Importer
|
||||||
Type=Application
|
Type=Application
|
||||||
Icon=preferences-desktop-personal
|
Icon=preferences-desktop-personal
|
||||||
Exec=/usr/bin/contacts-importer
|
Exec=/usr/bin/contacts-importer %U
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
|
MimeType=text/x-vcard;
|
||||||
|
|
Loading…
Reference in a new issue