-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you please add a Checkbox "Continue Task Immediately"? #22
Comments
+1 |
This was solved in version 0.4 or likely would have been possible even before with the timeout value |
Hi All I think the original purpose of this issue was not quite understood. Sometimes we need to perform a Task, but we don't know how long it will take. So setting a predefined Timeout to wait, is not good, So what we need is a "Wait for Task to End" Checkbox. The reason I name this checkbox "Continue Task Immediately", was just for consistency reasons with other Tasker actions. But I clearly see now how confusing it is. So allow me to rephrase: I need this not because I want to continue the task immediately, Thank you |
Oh +_+ Was not aware about the other extreme.. Thank you, will update my code now |
I checked it now, |
If you are running in background, it should continue when your script completes. If you are running in terminal session, then on version That has been solved in version 0.5. Check number |
Oh, it should continue after the command returns Like, if you symlink something like Is it not doing that for you? Here's some Tasker XML you can import to test the above (After making the symlink) <TaskerData sr="" dvi="1" tv="5.10.1">
<Task sr="task124">
<cdate>1608106054217</cdate>
<edate>1608106062459</edate>
<id>124</id>
<nme>Test Termux Sleep</nme>
<Action sr="act0" ve="7">
<code>1256900802</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.termux.execute.arguments>5</com.termux.execute.arguments>
<com.termux.execute.arguments-type>java.lang.String</com.termux.execute.arguments-type>
<com.termux.tasker.extra.EXECUTABLE>sleep</com.termux.tasker.extra.EXECUTABLE>
<com.termux.tasker.extra.EXECUTABLE-type>java.lang.String</com.termux.tasker.extra.EXECUTABLE-type>
<com.termux.tasker.extra.TERMINAL>false</com.termux.tasker.extra.TERMINAL>
<com.termux.tasker.extra.TERMINAL-type>java.lang.Boolean</com.termux.tasker.extra.TERMINAL-type>
<com.termux.tasker.extra.VERSION_CODE>4</com.termux.tasker.extra.VERSION_CODE>
<com.termux.tasker.extra.VERSION_CODE-type>java.lang.Integer</com.termux.tasker.extra.VERSION_CODE-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Execute ~/.termux/tasker/sleep 5</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%stdout
Standard Output
The &lt;B&gt;output&lt;/B&gt; of running the command</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%stderr
Standard Error
The &lt;B&gt;error output&lt;/B&gt; of running the command</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%result
Exit Code
The exit code set by the command upon completion.
0 often means success and anything else is usually a failure of some sort</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>com.termux.tasker.extra.EXECUTABLE com.termux.execute.arguments</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.termux.tasker</Str>
<Str sr="arg2" ve="3">com.termux.tasker.EditConfigurationActivity</Str>
<Int sr="arg3" val="3600"/>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Ahh</Str>
<Int sr="arg1" val="0"/>
</Action>
</Task>
</TaskerData> |
I am running in terminal session, because I want to see the progress of the execution..
MY Tasker and all Tasker plugins (in.c Termux Tasker) is downloaded from Google Play.. |
Oops.. The "Seems that v0.5 is "F-Droid only" line should not be quoted.. |
Check the reddit post here for why F-Droid only and how to shift. |
Oh.. Hmm, BTW, is this F-Droid shift only for Termux Plugins, or also for the Termux app itself too? |
Moreover, if you are running commands in the foreground, you will not receive any results back and in version If you want the task to wait until the foreground session is closed, that may or may not be possible, at least easily. Execution is handled by the |
This is for all termux apps and updates have already been pushed to F-Droid for |
Oh OK Thank you very much for this info |
You are welcome. |
Archenoth, thank you for the code.. @->- |
I second that as well for bringing result variables. Thanks. |
Oh! Thank you! But the improvements that @agnostic-apollo made in 0.5 seem to cover a lot of ground I didn't (And are actually just excellent in general! So thank you for that as well~ ^^) |
Wow, much praise. Thanks! And you are very welcome! :) |
OK, big hug to agnostic-apollo as well :) BTW, is there a chance maybe many users don't know about this whole F-Droid shift? Maybe a message should have been pushed to all Termux users about this.. |
What I can do only is to post information on Reddit and remove Play Store links from all READMEs and Termux Wiki. Adding that into Broadcasting a message directly into every Termux installation is not possible. |
Thanks a lot @spaceman5 :)
"Unfortunately", Termux does not gather telemetry data (that I know off) on users so that they could be sent private messages for situations like these. :p Normally, Play Store app description can be updated without an update, not sure if that is possible with the |
You guys can release a new version on Google Play (only on Google Play), that will include this message.. |
Again a line that I wrote was included inside the quoted text.. "It is possible, using a small trick.." was written by me, and is not a part of the quote.. |
Releasing a new version "normally" would require incrementing the |
Oh.. BTW, Termux is an app with a huge user base. I highly recommend that Fredrik Fornwall (and amybe the other developers) ask google for this meeting with their engineers. IMHO, the way to solve this problem is not to live with the google limitations, but to ask to break them, on a single app basis, due to necessity.. What do you think? |
Nothing could be released or edited on Play Store. No one except Fornwall has access to it.
Fornwall is most likely out of project. No progress/information from him so far regaring Android 10. We already has a solution in https://github.com/termux/termux-app/tree/android-10 but it will not be developed further as soon as termux-app will not have a new maintainer.
When developer uses legacy APIs, not provided by SDK or develops application in unexpected way and suddenly used functionality has been removed, that's not a problem of operating system. Developer is given a number of official APIs and application development guidelines which will ensure that application will run in long term. Termux has not been designed with keeping in mind that one day Android Is Not Linux and no need to complain about that.
These "limits" are from unexperienced user's scope. From my scope, there are no limits. Just enforcing app to be built as it should. Application may not change itself and I agree with that. Please understand the difference between application (Termux) and OS (say Ubuntu or other Linux distro). Application should not be able to download executables from third-parties whereas operating system should be able to do so on user request. Claiming that Google prohibits command line programs - that's unsubstantiated conspiracy and nonsense. |
Hi Xeffyr, thank you very much for your answer.
I understand that. But Termux is not a regular app, For this reason, having this app be able to use execve(), is critical. The concept of a special app getting special permission by google is not new. If google want to enable Termux to continue, google can easily do so, by granting Termux the needed permissions. I cannot explain how important and useful Termux was for me. Give a person a computer, and he'll learn computers..
Wow, that's really sad :( I assume this happened after (and because of) the SDK issue? If yes, maybe if it is solved with google, he might come back.. I find it hard to believe that someone who invested so much in it, would have any other reason to leave it, To summarize:
Please consider this path.. |
Since SDK 29,
Package manager do not give an operating system status to terminal emulator application. Any shell can modify its PATH and use whatever binaries which can be executed by underlying OS. Set of binaries is called userspace or userland, but not operating system.
Ohh, with SELinux is not that easy. SELinux cannot be bypassed through app permissions as works on very deep level.
Nope. Here is what is needed to grant Termux
That won't happen definitely. Termux is not backed by Google or any serious organization which will ensure that OS component candidate will not be outdated. Furthermore, it is not a mission critical thing. Termux is not suitable to be an OS component and current status of Termux app shows that. |
Locking issue since this is not a place to complain about Google's decisions. |
He is occupied with other personal matters, I am pretty sure the whole android 10 situation has nothing to do with his decision to re-prioritize how he spends his spare time. |
Sorry for being away and non responsive. Just got other things in life (mainly, new job and my second daughter) that have been taking a lot of energy. I'm actually starting (a nice and long 😊) Christmas vacation now, and is feeling motivated to jump back in! I would encourage everyone wanting to contribute to join the chat at https://gitter.im/termux/dev ! |
This checkbox will enable us to select whether to continue the task immediately,
or to wait for the executed command in Termux to finish.
Thank you very much
The text was updated successfully, but these errors were encountered: