[opensuse-kde3] Make KDE3 aware of non-KDE programs?
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 -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
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
On 2017-06-29 00:17:18 David C. Rankin wrote:
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.
David, I do have such a file. Its contents are as follows: [Desktop Entry] Comment=Xwindows version Exec='/usr/local/bin/xx' %F GenericName=The Programmer's Editor GenericName[en_US]=The Programmer's Editor Icon=alevt MimeType=application/Rexx;application/spitbol;application/x-Rexx;text/x-ooRexx;text/x-rust;text/x-Cargo;text/x-markdown;text/COBOL;text/x-cobol Name=X2 NoDisplay=false Path=~/x2 StartupNotify=true Terminal=0 TerminalOptions= Type=Application X-DCOP-ServiceType= X-TDE-SubstituteUID=false X-TDE-Username= However, active instances of the program (xx denotes the Xwindows version of the editor) are not restored after logging out and back in. Leslie -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 06/29/2017 03:46 AM, Leslie Turriff wrote:
However, active instances of the program (xx denotes the Xwindows version of the editor) are not restored after logging out and back in.
Leslie
Leslie, What are your 'control panel -> kde components -> session manager' settings? Do you have 'Restore previous session' checked? You may also want to change that temporarily to 'Restore manually saved session', then set the running apps you want in the session and choose 'Save session' from kmenu (it will show up as 2nd from bottom). You should then always restore that desktop state on login. (you may also try switching back to 'Restore previous session' and see if it will work from that point forward) -- 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
On 2017-07-03 00:43:00 David C. Rankin wrote:
On 06/29/2017 03:46 AM, Leslie Turriff wrote:
However, active instances of the program (xx denotes the Xwindows version of the editor) are not restored after logging out and back in.
Leslie
Leslie,
What are your 'control panel -> kde components -> session manager' settings? Do you have 'Restore previous session' checked? Yes, of course. KDE3 apps such as Konqueror and Konsole restart as expected; even FireFox does if I take it out of the 'Applications to be excluded from sessions' list in Session Manager.
You may also want to change that temporarily to 'Restore manually saved session', then set the running apps you want in the session and choose 'Save session' from kmenu (it will show up as 2nd from bottom). It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry. You should then always restore that desktop state on login. (you may also try switching back to 'Restore previous session' and see if it will work from that point forward)
-- David C. Rankin, J.D.,P.E.
Le lundi 03 juillet 2017, Leslie Turriff a écrit :
On 2017-07-03 00:43:00 David C. Rankin wrote:
On 06/29/2017 03:46 AM, Leslie Turriff wrote:
However, active instances of the program (xx denotes the Xwindows version of the editor) are not restored after logging out and back in.
Leslie
Leslie,
What are your 'control panel -> kde components -> session manager' settings? Do you have 'Restore previous session' checked?
Yes, of course. KDE3 apps such as Konqueror and Konsole restart as expected; even FireFox does if I take it out of the 'Applications to be excluded from sessions' list in Session Manager.
You may also want to change that temporarily to 'Restore manually saved session', then set the running apps you want in the session and choose 'Save session' from kmenu (it will show up as 2nd from bottom).
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
You should then always restore that desktop state on login. (you may also try switching back to 'Restore previous session' and see if it will work from that point forward)
-- David C. Rankin, J.D.,P.E.
To see this item in the KDE menu, you must first launch kcontrol, -> "KDE components" -> "session managing" or "session administration". In the middel of the window, there is be frame titled "at connexion time", in which you have three possibilities : choose "restor the manualy saved session". I have a french version and I am not certain at all of the traduction of the differents items above, sorry about that, but you should find without difficulty. Patrick
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie, You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session Then you will see the manual save option below :) -- David C. Rankin, J.D.,P.E.
On 2017-07-05 14:37:54 David C. Rankin wrote:
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie,
You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session
Then you will see the manual save option below :)
Ah, I see. I was looking for it in Kmenu's Session Manager dialog, not where you showed me. I understand now. Thanks. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Le jeudi 06 juillet 2017, Leslie Turriff a écrit :
On 2017-07-05 14:37:54 David C. Rankin wrote:
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie,
You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session
Then you will see the manual save option below :)
Ah, I see. I was looking for it in Kmenu's Session Manager dialog, not where you showed me. I understand now. Thanks.
You are welcome ! -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 2017-07-05 14:37:54 David C. Rankin wrote:
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie,
You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session
Then you will see the manual save option below :)
Okay, I made the changes as shown in the attachment, then clicked on Save Session in the Kmenu list (which provided no feedback), then logged out and in again; but the non-KDE application still wasn't restored. Leslie
On 07/07/2017 07:37 AM, Leslie Turriff wrote:
On 2017-07-05 14:37:54 David C. Rankin wrote:
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie,
You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session
Then you will see the manual save option below :)
Okay, I made the changes as shown in the attachment, then clicked on Save Session in the Kmenu list (which provided no feedback), then logged out and in again; but the non-KDE application still wasn't restored.
Leslie
OK, Time for more digging. All session restoration is controlled by session files contained in your ~/.kde/share/config/session directory. The configuration file responsible for making it work is ~/.kde/share/config/ksmserverrc. If you look, you will see the applications started as part of your session in the directory and also listed in the rc file. I will have to search for documentation (both in my kde install in /opt/kde3/share/doc and online. It is frustrating that kde.org tried to kill kde3 by removing most of the historical content and sources from the kde.org website. It is hit or miss as to what remains. It is somewhat ironic that kde5 (plasma/fw5) was broken in that regard.. https://bugs.launchpad.net/bugs/1446865 Believe it or not, there is still good information in: https://userbase.kde.org/KDE_System_Administration/Startup (that part didn't change much (if at all) between kde3/4) Do a bit of searching and I'll do the same. If I come up with something I'll drop a reply. -- 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
On 2017-07-07 09:12:32 David C. Rankin wrote:
It is frustrating that kde.org tried to kill kde3 by removing most of the historical content and sources from the kde.org website. It is hit or miss as to what remains. Ah. That probably explains why there are hardly any useful Handbooks for the KDE3 apps any more.
It is somewhat ironic that kde5 (plasma/fw5) was broken in that regard.. IMO KDE4 and Plasma are practically unusable. The KDE powers that be seem to have decided that eye candy is more important than functionality.
-- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 07/07/2017 04:56 PM, Leslie Turriff wrote:
IMO KDE4 and Plasma are practically unusable. The KDE powers that be seem to have decided that eye candy is more important than functionality.
I'm still waiting for it to do something KDE3 doesn't in a reasonable memory footprint. Instead you get broken konqueror [1], a ksnapshot replacement (spectacle) that cannot even take a snapshot of itself to file with the bug report, the kioslaves in the open/save/save as dialogs are a mismatched patchwork of crap, the focus model for 'focus follows mouse (sloppy focus) is botched, the damn color-chooser is horrendous, etc..., etc..., etc... (they did fix the bug I filed on kate/kwrite having to hit [ctrl+z] twice to undo a single keystroke (WTF?), and they fixed the preview with syntax highlight in konqueror, but that's the tip of the ploblems iceberg) I need to be able to work within my desktop environment, not spend 1+ hour out of every single day filing bug reports on why xyz is broken and abc won't work. The biggest issue facing Plasma (that broke kde4 forever and I don't see as fixable) is that instead of (1) having a dedicated team; (2) focused on making the desktop be as efficient as possible with the least required user inputs; and (3) with the kde team focused on the integrated desktop as a whole ... you now have kde development broken up into separate fiefdoms with 'person A' working on 'app A' and 'B' on 'B' and very little focus on how the desktop works as a whole. That's what brought us the botched KDE4 and its follow-on Plasma that feels more like an awkward mess than an integrated desktop. I could give a crap about the 'supposed' eye-candy. I never saw any improvement. A dark keramic theme with crystal windeco is about the pinnacle of eye-candy across any of the desktops I've used (pretty much all of them from blackbox to wmii, from e16 to sawfish and everything in between -- I do like fluxbox and i3 for minimal environments) Now compiz was a fantastic addition to kde3 with the cylinder and sphere, but the build we have Leap 42.2 lacks about all of the good plugins. I still have an old suse 11.0 laptop with the full set and about 300 emerald themes (50 or more I wrote) that is a pleasure to use. Plasma even managed to screw up copying the compiz code into plasma which led to totally botched behavior, e.g. https://bugs.kde.org/show_bug.cgi?id=373101 https://bugs.kde.org/show_bug.cgi?id=372351 </rant off> I feel better now. Footnote [1] plasma/fw5 konqueror is a fricking mess, you cannot even restore your last saved setup that you configured to have it work like kde3 with the dir tree on the left and detailed files on the right. Instead on each lauch of konqueror you have to re-freeze the directory listing. Their answer? -- they want you to use a dumbed down dolphin instead! - what crap. KDE without Konqueror -- sign me up! -- 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
On 2017-07-07 17:57:31 David C. Rankin wrote:
Footnote [1] plasma/fw5 konqueror is a fricking mess, you cannot even restore your last saved setup that you configured to have it work like kde3 with the dir tree on the left and detailed files on the right. Instead on each lauch of konqueror you have to re-freeze the directory listing. Their answer? -- they want you to use a dumbed down dolphin instead! - what crap. KDE without Konqueror -- sign me up!
Um... not sure exactly what you're saying here. Konqueror in KDE3 has to be the best file manager I've ever used, and that's one of the main reasons they'll have to pry KDE3 from my cold dead fingers. The eye-candy loons had their fingers into KDE3 toward the end as well; they tried to replace the Hicolor Classic icon set with a slew of low-contrast pastel icons that are pretty much impossible for a lot of old farts like me to distinguish. (Being an ex-mainframe person, used to working with just a "green screen" text terminal, all I want is a nice clean, =>functional<= interface.) Then the KDE4 bozos came up with the idea of (I guess one would call) compiled themes that are sooo much harder to customize than in KDE3. I wouldn't have minded so much if they had just provided one look-alike theme; but no, just a zillion 'artsy' themes, pure eye-candy, and a set of controls that requires a PhD to understand. I agree with you, we have better things to do than struggle with their "improved" desktop; like getting on with our work... -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 07/07/2017 09:22 PM, Leslie Turriff wrote:
On 2017-07-07 17:57:31 David C. Rankin wrote:
Footnote [1] plasma/fw5 konqueror is a fricking mess, you cannot even restore your last saved setup that you configured to have it work like kde3 with the dir tree on the left and detailed files on the right. Instead on each lauch of konqueror you have to re-freeze the directory listing. Their answer? -- they want you to use a dumbed down dolphin instead! - what crap. KDE without Konqueror -- sign me up!
Um... not sure exactly what you're saying here.
Look closely: "Footnote [1] plasma/fw5 konqueror" That's the KDE5 konqueror. Konqueror in KDE3 has to be
the best file manager I've ever used, and that's one of the main reasons they'll have to pry KDE3 from my cold dead fingers.
Agreed. The first thing I start each session. Followed by konsole (you can even use dcop to setup your sessions and name the tabs). Then kate with whatever smattering of files are in use. (when I was building TDE for Arch, I'd have 128 PKGBUILD build scripts open at once) The the remaining apps as needed. Konqueror's preview abilities are second to none and KDE3 provides all the preview formats that the later KDEs do as well. The single-click interface with 'focus follows mouse' and the forethought to allow clicking in the empty space to the right of the filename to focus was a stroke of brilliance that KDE4 and Plasma totally screwed up (Qt4 and FW5 are *incapable* of of providing the same functionality -- instead they way to add stupid red and green checkboxes for you to click to focus -- so much for efficiency and accomplishing a task with the minimum of inputs required...
The eye-candy loons had their fingers into KDE3 toward the end as well; they tried to replace the Hicolor Classic icon set with a slew of low-contrast pastel icons that are pretty much impossible for a lot of old farts like me to distinguish. (Being an ex-mainframe person, used to working with just a "green screen" text terminal, all I want is a nice clean, =>functional<= interface.) Then the KDE4 bozos came up with the idea of (I guess one would call) compiled themes that are sooo much harder to customize than in KDE3. I wouldn't have minded so much if they had just provided one look-alike theme; but no, just a zillion 'artsy' themes, pure eye-candy, and a set of controls that requires a PhD to understand. I agree with you, we have better things to do than struggle with their "improved" desktop; like getting on with our work...
The other KDE3 triumph (which extends to the current Plasma/Fw5 edition) is konsole. The ability to have 10 sessions (3 or 4 to localhost and the rest to the remote servers I deal with via ssh) in a clean tabbed interface was brilliance. The KDE4 and Plasma versions have a horrible tab setup. The tabs try and expand to fill the entire width - awful. -- 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
On 07/07/2017 07:37 AM, Leslie Turriff wrote:
On 2017-07-05 14:37:54 David C. Rankin wrote:
On 07/03/2017 06:54 PM, Leslie Turriff wrote:
It's not clear to me where to find Save Session. I have looked in Kmenu's selection list and in its editor list, but see no such entry.
Sorry Leslie,
You must have set control panel -> KDE Components -> Session Manager -> On Login -> Restore manually saved session
Then you will see the manual save option below :)
Okay, I made the changes as shown in the attachment, then clicked on Save Session in the Kmenu list (which provided no feedback), then logged out and in again; but the non-KDE application still wasn't restored.
Leslie
Leslie, You do know you can just drop a symlink to the program you want started on each login in ~/.kde/Autostart/? I do that for starting syndaemon for touchpad control, setting the xrandr backlight control for the nvidia driver and setting all xset options I want for xterm, etc... E.g., $ ls -1 ~/.kde/Autostart/ tpad_syndaemon.sh xrandr_backlight.sh xset_autostart.sh They are just symlinks to short shell scripts that start each non-kde program I want running in each session with the options I want (as well as providing cli options to change the settings at runtime), e.g. tpad_syndaemon.sh -> /home/david/scr/cnf/tpad_syndaemon.sh xrandr_backlight.sh -> /home/david/scr/adm/scrnblnvidia.sh xset_autostart.sh -> /home/david/scr/cnf/xset_autostart.sh This option may be just what you need. Sorry I didn't snap to this option earlier :) -- 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
participants (3)
-
David C. Rankin
-
Leslie Turriff
-
Patrick Serru