← Back to team overview

ubuntu-phone team mailing list archive

ContentHub, upstart: detecting launch reason

 

Hi all!
  I'm writing an app which can be a source of pictures for other apps. I
understand that I need to handle the exportRequested() signal from the
content hub, but it's not clear to me what to do after the transfer has
been completed or canceled.
I would like to:
- if the app was started by the content hub for providing content: quit
- if the app was started by the user: continue running

which leads to the question: how to detect whether the app was launched
by the user or by the content hub?

Ciao,
  Alberto


Follow ups