소스 검색

Make shebang explicit /usr/bin/python2 where it's still there

Both Archlinux and Fedora 29 have guidelines to point explicitly at
/usr/bin/python2 where it expect python2.

Also, do not use env.

Fixes QubesOS/qubes-issues#4027
Marek Marczykowski-Górecki 5 년 전
부모
커밋
3b0f80e19f
7개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 1
      misc/qubes-desktop-run
  2. 1 1
      misc/qubes-session-autostart
  3. 1 1
      misc/qvm-features-request
  4. 1 1
      misc/yum-qubes-hooks.py
  5. 1 1
      qubes-rpc/qrun-in-vm
  6. 1 1
      qubes-rpc/xdg-icon
  7. 0 2
      qubesagent/xdg.py

+ 1 - 1
misc/qubes-desktop-run

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 from qubesagent.xdg import launch
 import sys

+ 1 - 1
misc/qubes-session-autostart

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 #
 # The Qubes OS Project, http://www.qubes-os.org

+ 1 - 1
misc/qvm-features-request

@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/python2
 # vim: fileencoding=utf-8
 
 #

+ 1 - 1
misc/yum-qubes-hooks.py

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # The Qubes OS Project, http://www.qubes-os.org
 #

+ 1 - 1
qubes-rpc/qrun-in-vm

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Send the command to the remote side, and then transfer stdin from local to
 # remote and stdout from remote to local.
 #

+ 1 - 1
qubes-rpc/xdg-icon

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import xdg.IconTheme
 import sys
 import os

+ 0 - 2
qubesagent/xdg.py

@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
 from gi.repository import Gio  # pylint: disable=import-error
 from gi.repository import GLib  # pylint: disable=import-error
 import sys