- Create a directory in your home directory called .icewm (it may exist already):
- Create a file called "startup" in that directory with a small shell script to do your command:
Code:
#!/bin/bash
konsole -e ssh user@host
- make the file executable:
Code:
chmod 755 $HOME/.icewm/startup
Next time you log in the startup script should be run. This will only run under icewm.
If you use the Xsession approach, you could test the environment variable DESKTOP_SESSION to determine which type of login it is, but this is not necessary if you're using icewm's own startup script.