403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.236
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/editors/elementary-code/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/editors/elementary-code/files/patch-plugins_terminal_terminal.vala
--- plugins/terminal/terminal.vala.orig	2022-04-04 16:20:49 UTC
+++ plugins/terminal/terminal.vala
@@ -200,13 +200,16 @@ public class Scratch.Plugins.Terminal : Peas.Extension
 
     public string get_shell_location () {
         int pid = (!) (this.child_pid);
+        string cwd = "";
 
         try {
-            return GLib.FileUtils.read_link ("/proc/%d/cwd".printf (pid));
+            //return GLib.FileUtils.read_link ("/proc/%d/cwd".printf (pid));
+            GLib.Process.spawn_command_line_sync ("pwd", out cwd);
         } catch (GLib.FileError error) {
             warning ("An error occurred while fetching the current dir of shell");
-            return "";
         }
+
+        return cwd;
     }
 
     void on_hook_notebook () {

Youez - 2016 - github.com/yon3zu
LinuXploit