4

In Ubuntu touch terminal, when you run a command line application like vim or a long running shell script and you switch away to another app, the running application is stopped (like ctrl+z).

This is even more annoying when your application comes back but the terminall is messed up. And your application is revived in backgound. Or if you run a script an the script is stopped just because you have switched away. That script might be a server.

3
  • I'm not sure if this is supposed to be a bug report as there doesn't seem to be a question. If so please report it here bugs.launchpad.net/ubuntu-terminal-app/+filebug?no_redirect Or see askubuntu.com/q/778814/392342 about why the app is being suspended if you are wondering why Jun 12, 2016 at 11:57
  • @DanielChapman . turns out to be a little bit of both. And a little bit more. I guess the question remains: Can i as a user/administrator of a device bless an application so it will run in background and not be killed?
    – E. Timotei
    Jun 12, 2016 at 18:55
  • 1
    You can bless applications to have a lifecycle exemption by fiddling with gsettings but i can't recall how. it's alot easier to just use ubuntu touch tweak tool from the open store open.uappexplorer.com which you can select which apps you want to allow to run in the background Jun 13, 2016 at 14:46

2 Answers 2

3

You can change terminal lifecycle by running these command.

  1. Find out which apps are supposed not to be suspended:

    gsettings get com.canonical.qtmir lifecycle-exempt-appids
    

    For me this command returns ['com.ubuntu.music']

  2. Add terminal app to this list

    gsettings set com.canonical.qtmir lifecycle-exempt-appids "['com.ubuntu.music', 'com.ubuntu.terminal']"
    

    Now terminal shouldn't be stopped anymore.

This solution from "VLC running in the Terminal App on Ubuntu Touch has play/pause/skip controls in the sound indicator" on reddit.

1
  • made an error - please ignore thsi comment
    – Jack
    Jun 17, 2016 at 10:31
1

Thanks to Daniel for the pointer.

The answer is:

Go to open.uappexplorer.com and download the openstore click package and install it.

If you cannot find your new open store app restart or search for it the apps scope.

From open store app install UT Tweak Tool.

Again, if the app is not in the scope, then search for it, restart or you can install an app from the normal app store. (this looks like a minor bug that the apps scope is not refreshed)

In UT Tweak Tool, go in the upper left menu and choose "apps scopes". There you can search for your app that you want to bless and activate "prevent app suspension".

Done.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.