Added Support for terminal from filemanager
* Now We can open terminal from current directory in filemanager
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Change-Id: I6df9ee1222c1fa24105da1002abe3c180be2ded1
Signed-off-by: AndroiableDroid <mohd.faraz.abc@gmail.com>
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index b78191d..ea52af8 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -4188,6 +4188,13 @@
</text>
<button style="main_button_half_height">
+ <condition var1="tw_fm_isfolder" var2="1"/>
+ <placement x="%center_x%" y="%row12a_y%"/>
+ <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
+ <action function="changeterminal">%tw_filename1%</action>
+ </button>
+
+ <button style="main_button_half_height">
<condition var1="tw_fm_isfolder" var2="0"/>
<placement x="%indent%" y="%row15a_y%"/>
<text>{@fm_copy_file_btn=Copy File}</text>
@@ -4871,6 +4878,7 @@
<actions>
<action function="set">tw_hide_kb=0</action>
<action function="key">home</action>
+ <action function="changeterminal"/>
</actions>
</button>
@@ -4906,6 +4914,7 @@
<actions>
<action function="set">tw_hide_kb=0</action>
<action function="key">back</action>
+ <action function="changeterminal"/>
</actions>
</button>
@@ -4914,6 +4923,7 @@
<actions>
<action function="set">tw_hide_kb=0</action>
<action function="page">main</action>
+ <action function="changeterminal"/>
</actions>
</action>
@@ -4922,6 +4932,7 @@
<actions>
<action function="set">tw_hide_kb=0</action>
<action function="page">advanced</action>
+ <action function="changeterminal"/>
</actions>
</action>