View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#237
Originally Posted by patlak View Post
Weird issue I found. After couple of times having opened CuteTube, it stops working from the icon until a reboot for unknown reason. I used the word weird since it has no issues starting from terminal when this issue arises from the icon.
I'm unable to reproduce this on my device: http://youtu.be/tI8nP7obVMQ

It seems that something on your device is preventing the process from being terminated when you attempt to close the application.

The reason you are still able to launch the application from the terminal is because the command is different. When launching from the desktop file, cuteTube is launched via /usr/bin/invoker with the --single-instance (or -s) option enabled:

Code:
/usr/bin/invoker --type=d -s --splash=/opt/cutetube/resources/splash-app.png --splash-landscape=/opt/cutetube/resources/splash-app-landscape.png  /opt/cutetube/bin/cutetube
This ensures that, if there is an instance of cuteTube running, that the top-level window of that instance is activated when the user taps the desktop icon. Executing the binary from the command line will create a new instance regardless.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following User Says Thank You to marxian For This Useful Post: