|
|
2011-10-03
, 08:16
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#2
|
Is there a way close applications gracefully from command line (the "kill" command is no good since closing with it will not make the application save its state for next launch).
when closing with the "X" on the application's window, the application saves its last state (someplayer, xournal, etc...) - i want to simulate this close command by command line.
when closing with the "X" on the application's window, the application saves its last state (someplayer, xournal, etc...) - i want to simulate this close command by command line.
i've seen it is possible to launch application by using dbus:
dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:[appname]
but by using d-feet i've seen that this is the only available method there and that there is no "CloseApplication" equivalent...