这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented May 21, 2019

  • Intent category "default" is not needed after dropping failsafe icon.

  • Also move the routines to clear /tmp dir to TermuxService.onDestroy().

Leonid Plyushch added 3 commits May 21, 2019 17:22
It was needed only when Termux had separate icon for failsafe activity.
@ghost ghost changed the title Some fixes Remove intent category "default" from manifest May 21, 2019
@tomty89
Copy link
Contributor

tomty89 commented May 21, 2019

@xeffyr

Should TMPDIR clean up be performed after stopForeground()?

Also, can you make it clean its canonical file instead so that it also works when e.g. PREFIX is a symlink?

@fornwall

What's the point of the finishIfRunning loops? It wouldn't kill the "orphan" processes anyway.

Also, in the two ocassions where stopSelf() is called conditionally, one checks whether there's any background task while one does not, why is that? (In other words, why shouldn't removeTermSession() just call updateNotification() unconditionally?)

In addition, why should stopSelf() be called unconditionally for ACTION_STOP_SERVICE? (especially when onDestroy() doesn't deal with background tasks)

@ghost
Copy link
Author

ghost commented May 21, 2019

Should TMPDIR clean up be performed after stopForeground()?

Is there some benefits in doing it after stopForeground() ?
I think that all manipulations with $PREFIX should be done before anything else in onDestroy().

Also, can you make it clean its canonical file instead so that it also works when e.g. PREFIX is a symlink?

Yes, will do.

@fornwall fornwall merged commit 514f592 into master May 21, 2019
@ghost ghost deleted the fixes branch May 21, 2019 19:52
@fornwall
Copy link
Member

This is being part of the v0.71 which is now rolling out on Google Play.

@tomty89
Copy link
Contributor

tomty89 commented May 22, 2019

@xeffyr I just thought perhaps stopForeground() is responsible for killing all the processes.

@ghost
Copy link
Author

ghost commented May 22, 2019

stopForeground() is responsible for killing all the processes.

It just removes Service from foreground state. It doesn't kill any processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants