This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kstart not starting programs on different desktops (script)

Tags: None
(comma "," separated)
matthiash
Registered Member
Posts
2
Karma
0
Hey guys, I am trying to create a script to start a few tools I need the most often automatically. Calling
Code: Select all
kstart --desktop $2 $1 &
($2 is the number of the desktop, $1 the actual program) multiple times though does not result in the desired behaviour. All programs are opened on the desktop I am currently on even though I explicitly tell kstart to open them on different desktops. Using this command not in a script but calling it in zsh directly will work.
Has anyone faced this before / is there any trick to make this work?

NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
Linux xxx 4.8.17-040817-generic #201701090438 SMP Mon Jan 9 09:40:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
SHELL=/usr/bin/zsh

script:
#!/usr/bin/env zsh
function start_if_not_running() {
...
kstart --desktop $2 $1 &
...
User avatar
Rog131
Registered Member
Posts
828
Karma
10
If you are using the plasma 5 / KDE Frameworks 5 - Kinfocenter: https://www.kde.org/applications/system/kinfocenter/

Try the command kstart5:

Code: Select all
$ kstart5 --help
Usage: kstart5 [options]
Utility to launch applications with special window properties
such as iconified, maximized, a certain virtual desktop, a special decoration
and so on.

Options:
  -v, --version              Displays version information.
.
.
.
enriqueganem
Registered Member
Posts
1
Karma
0
Hi!

I've been using kstart for some time now without problems.

I recently updated from OpenSuse Leap 15.2 to 15.4.

Kstart is not starting applications on the requested desktop (they always start on the current desktop). Also, the -geometry statement is not respected (it worked nicely before). The problem is the same with kstart5. Both commands do not send any error messages.

Please help!

Thank you.

More on this...

kstart5 does not work either (same behaviour... starts application on current desktop). The -geometry statement does not work either (the application always start with the last geometry setting).


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]