how to make sure that digikam is started only once

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to make sure that digikam is started only once

Markus Spring
Hi,

what is the best method to ensure that there is only one digikam instance
started on a computer? Is there a signal to restore/maximise a running digikam
application, that could be sent from a shell script?

Background: My father is organizing his images with digikam, but sometimes he
overlooks a minimized digikam and starts a 2nd or 3rd instance. This seems to
lead to crashes.

Thanks - Markus
--

Photoblog: http://markus-spring.info
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: how to make sure that digikam is started only once

Marcel Wiesweg

> Hi,
>
> what is the best method to ensure that there is only one digikam instance
> started on a computer? Is there a signal to restore/maximise a running
> digikam application, that could be sent from a shell script?

Use qdbusviewer to browse the DBus interfaces available. You can get the winID
from the org.kde.MainAppliction. I currently dont know how to show a window,
seems KWin does not provide the via DBus.

>
> Background: My father is organizing his images with digikam, but sometimes
> he overlooks a minimized digikam and starts a 2nd or 3rd instance. This
> seems to lead to crashes.

Give us backtraces...
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users