Find the answer to your Linux question:
Results 1 to 3 of 3
How can I start an application on a specified virtual desktop from a bash script? I am trying to start an application in KDE from a bash script, but I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76

    open window on virtual desktop / workspace


    How can I start an application on a specified virtual desktop from a bash script?

    I am trying to start an application in KDE from a bash script, but I want it to appear on virtual desktop #2.

    Is there a command like:
    run_on <virtualdesktop_2> <some_application>
    run_on 2 /usr/bin/xterm

    Notice that virtual desktops are something different than the DISPLAY setting :2.0 etc.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I believe you should be able to just do
    Code:
    kstart --desktop 2 MyApp

  3. #3
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    Quote Originally Posted by reed9 View Post
    I believe you should be able to just do
    Code:
    kstart --desktop 2 MyApp
    Yes indeed, this appears to work as intended. Thnx!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •