瀏覽代碼

UPD: Remove shebang from python scripts to reassure lintian

Alexander Koblov 10 年之前
父節點
當前提交
786dd3f61b
共有 4 個文件被更改,包括 4 次插入8 次删除
  1. 0 2
      scripts/doublecmd-kde.py
  2. 0 2
      scripts/rabbit-vcs.py
  3. 2 2
      src/platform/unix/ukde.pas
  4. 2 2
      src/platform/unix/urabbitvcs.pas

+ 0 - 2
scripts/doublecmd-kde.py

@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 #
 #
 # Double Commander
 # Double Commander
 # -------------------------------------------------------------------------
 # -------------------------------------------------------------------------

+ 0 - 2
scripts/rabbit-vcs.py

@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 #
 #
 # This is an extension to the Double Commander to allow
 # This is an extension to the Double Commander to allow
 # integration with the version control systems.
 # integration with the version control systems.

+ 2 - 2
src/platform/unix/ukde.pas

@@ -28,7 +28,7 @@ begin
   Args := ' openwith';
   Args := ' openwith';
   for I := 0 to FileList.Count - 1 do
   for I := 0 to FileList.Count - 1 do
     Args+= ' ' + QuoteStr(FileList[I]);
     Args+= ' ' + QuoteStr(FileList[I]);
-  Result:= ExecCmdFork(PythonScript + Args);
+  Result:= ExecCmdFork('python ' + PythonScript + Args);
 end;
 end;
 
 
 procedure Initialize;
 procedure Initialize;
@@ -37,7 +37,7 @@ begin
   if UseKde then
   if UseKde then
   begin
   begin
     PythonScript:= gpExePath + PythonScript;
     PythonScript:= gpExePath + PythonScript;
-    UseKde:= (fpSystemStatus(PythonScript + ' > /dev/null 2>&1') = 0);
+    UseKde:= (fpSystemStatus('python ' + PythonScript + ' > /dev/null 2>&1') = 0);
   end;
   end;
 end;
 end;
 
 

+ 2 - 2
src/platform/unix/urabbitvcs.pas

@@ -69,7 +69,7 @@ implementation
 
 
 uses
 uses
   dbus, unixtype, fpjson, jsonparser, unix,
   dbus, unixtype, fpjson, jsonparser, unix,
-  uGlobs, uGlobsPaths, uPython;
+  uGlobs, uGlobsPaths, uMyUnix, uPython;
 
 
 const
 const
   MODULE_NAME = 'rabbit-vcs';
   MODULE_NAME = 'rabbit-vcs';
@@ -112,7 +112,7 @@ begin
     Print('Service found running.')
     Print('Service found running.')
   else
   else
     begin
     begin
-      Result:= fpSystem(PythonScript) = 0;
+      Result:= fpSystemStatus('python ' + PythonScript) = 0;
       if Result then
       if Result then
         Print('Service successfully started.');
         Print('Service successfully started.');
     end;
     end;