Make all scripts in qubes-rpc executable

Don't rely on legacy feature of interpreting non-executable files as
scripts there.
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-09 23:09:58 +02:00
parent 422f03e9ac
commit ce63d31a2e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
15 changed files with 20 additions and 7 deletions

View File

@ -253,18 +253,18 @@ install-common:
install -d $(DESTDIR)/$(KDESERVICEDIR) install -d $(DESTDIR)/$(KDESERVICEDIR)
install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDESERVICEDIR) install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDESERVICEDIR)
install -d $(DESTDIR)/etc/qubes-rpc install -d $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/{qubes.Filecopy,qubes.OpenInVM,qubes.VMShell,qubes.SyncNtpClock} $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/{qubes.Filecopy,qubes.OpenInVM,qubes.VMShell,qubes.SyncNtpClock} $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.VMRootShell $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.VMRootShell $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.OpenURL $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.OpenURL $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/{qubes.SuspendPre,qubes.SuspendPost,qubes.GetAppmenus} $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/{qubes.SuspendPre,qubes.SuspendPost,qubes.GetAppmenus} $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.SuspendPreAll $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.SuspendPreAll $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.SuspendPostAll $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.SuspendPostAll $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.DetachPciDevice $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.DetachPciDevice $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.{Backup,Restore} $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.{Backup,Restore} $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.GetImageRGBA $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.GetImageRGBA $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.SetDateTime $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.SetDateTime $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.ResizeDisk $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.ResizeDisk $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.StartApp $(DESTDIR)/etc/qubes-rpc install -m 0755 qubes-rpc/qubes.StartApp $(DESTDIR)/etc/qubes-rpc

2
qubes-rpc/qubes.Backup Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/bin/sh
echo Starting Backupcopy echo Starting Backupcopy
read args read args
echo Arguments: $args echo Arguments: $args

0
qubes-rpc/qubes.DetachPciDevice Normal file → Executable file
View File

1
qubes-rpc/qubes.Filecopy Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
exec /usr/lib/qubes/qfile-unpacker exec /usr/lib/qubes/qfile-unpacker

1
qubes-rpc/qubes.GetAppmenus Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/sh
find /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' -print0 2>/dev/null | \ find /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' -print0 2>/dev/null | \
xargs -0 awk ' xargs -0 awk '
BEGINFILE { entry="" } BEGINFILE { entry="" }

1
qubes-rpc/qubes.GetImageRGBA Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/sh
set -e set -e
read filename read filename

1
qubes-rpc/qubes.OpenInVM Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
exec /usr/lib/qubes/vm-file-editor exec /usr/lib/qubes/vm-file-editor

1
qubes-rpc/qubes.Restore Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/bin/sh
echo Starting Restorecopy >&2 echo Starting Restorecopy >&2
read args read args
read paths read paths

1
qubes-rpc/qubes.SelectDirectory Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
exec zenity --title="Qubes" --file-selection --directory exec zenity --title="Qubes" --file-selection --directory

1
qubes-rpc/qubes.SelectFile Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
exec zenity --title="Qubes" --file-selection exec zenity --title="Qubes" --file-selection

0
qubes-rpc/qubes.SetDateTime Normal file → Executable file
View File

1
qubes-rpc/qubes.SuspendPost Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
/usr/lib/qubes/prepare-suspend resume /usr/lib/qubes/prepare-suspend resume

1
qubes-rpc/qubes.SuspendPre Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
/usr/lib/qubes/prepare-suspend suspend /usr/lib/qubes/prepare-suspend suspend

1
qubes-rpc/qubes.SyncNtpClock Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
/usr/lib/qubes/sync-ntp-clock /usr/lib/qubes/sync-ntp-clock

1
qubes-rpc/qubes.VMShell Normal file → Executable file
View File

@ -1 +1,2 @@
#!/bin/sh
exec /bin/bash exec /bin/bash