Merge remote-tracking branch 'qubesos/pr/15'

* qubesos/pr/15:
  Fall back to gnome utilities if kdialog not present

Fixes QubesOS/qubes-issue#1429
This commit is contained in:
Marek Marczykowski-Górecki 2016-06-01 22:56:24 +02:00
commit be2c9313a4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 45 additions and 39 deletions

View File

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#
if type kdialog 2> /dev/null; then
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
if [ X$VM = X ] ; then exit 0 ; fi
@ -41,3 +41,6 @@ qdbus $REF close
# if ! [ "x"$agentstatus = xDONE ] ; then
# kdialog --sorry 'Abnormal file copy termination; see /var/log/qubes/qrexec.xid.log in dom0 for more details'
# fi
else
exec /usr/lib/qubes/qvm-copy-to-vm.gnome "$@"
fi

View File

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#
if type kdialog 2> /dev/null; then
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
if [ X$VM = X ] ; then exit 0 ; fi
@ -45,3 +45,6 @@ qdbus $REF close
# if ! [ "x"$agentstatus = xDONE ] ; then
# kdialog --sorry 'Abnormal file copy termination; see /var/log/qubes/qrexec.xid.log in dom0 for more details'
# fi
else
exec /usr/lib/qubes/qvm-move-to-vm.gnome "$@"
fi