On 06/23/2017 10:41 PM, Leslie Turriff wrote:
My favourite text editor is an Xwindows program called X2, which I launch from either the Konsole or from an application button on my panel. I would like, if possible, to make KDE aware that (an) instance(s) is/are running when I log out, so that X2 can be restored at the next login. Is there a way to do that?
Leslie
Leslie, Have you created a .desktop file for the editor by creating an entry with 'kmenuedit'? (or you can create one for use in ~/.local/share/applications/X2.desktop) Simply launching kmenuedit (either from kmenu or `Alt+F2 kmenuedit`) and choosing 'Add' and filling in the fields will do it. If you create it manually, you will still have to tell kmenu to use it with kmenuedit. The contents of the .desktop file will be similar to the following depending on the fields you fill out... (here is the .desktop file for my gtkwrite editor I dabble with. It's just my simple implementation of 'kwrite' written in gtk+2, thus gtkwrite :p) [Desktop Entry] Comment= Exec[$e]='/home/david/dev/git/gtkwrite.build/bin/gtkwrite' GenericName=Gtk+2 Advanced Editor Icon=kate2 Name=GtkWrite Path[$e]= StartupNotify=true Terminal=0 TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= With a registered .desktop file, the kde session manager should keep track of the running state of the application. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org