Browse Source

UPD: Remove shebang from python scripts to reassure lintian

Alexander Koblov 10 years ago
parent
commit
786dd3f61b

+ 0 - 2
scripts/doublecmd-kde.py

@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 #
 # 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
 # integration with the version control systems.

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

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

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

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