Results 1 to 5 of 5

Thread: Starting apps on separate workspaces

  1. #1
    Join Date
    Jan 2009
    Beans
    5

    Starting apps on separate workspaces

    Invariably the first thing I do after I log in to a KDE desktop is start a bunch of apps using kstart, using --desktop to send them to separate workspaces.

    This seems to work fine from the command line, but if I try to launch them from a bash script all the applications start
    on the same workspace as my terminal. For example,

    --------------

    #!/bin/bash

    echo "Starting apps..."

    kstart --desktop 1 firefox &> /dev/null &
    kstart --desktop 2 kontact &> /dev/null &
    kstart --desktop 3 dolphin &> /dev/null &
    kstart --desktop 4 konsole &> /dev/null &

    --------------

    I'm just curious why this doesn't work the way I expect, and if there is a simple alternative that might work better.

  2. #2
    Join Date
    Feb 2011
    Location
    Columbus, OH
    Beans
    119
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Starting apps on separate workspaces

    How about trying this the GUI way- and there are 2 ways (see the images below).

    Under the Application settings goto: Size and Position> Desktop "force" and choose which desktop you want this application to always appear, and of course you can add more than one setting per app- maybe the pixel position on said desktop, or the window size, ect.
    Thats the quickest way- but you can also do this from KDE control panel "window rules" where you would also remove the rules you no longer need.

    This seems to work for me, and KDE remembers at each boot. Hope it helps
    Attached Images Attached Images
    Toshiba Satellite L875-s7230 / A6 2.7ghz dual-core piledriver w/ ATI Radeon HD 7520G / 8GB Corsair Vengeance DDR3-1600 RAM / 500 GB Seagate Momentus XT formatted JFS. >Wifi Drivers for this machine< My Deviant Screenshots

  3. #3
    Join Date
    Jul 2012
    Beans
    315
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Starting apps on separate workspaces

    Alternatively:

    wmctrl

    devilspie
    The best things in life are free, so what are we paying for?

  4. #4
    Join Date
    Jan 2009
    Beans
    5

    Re: Starting apps on separate workspaces

    The application settings method looks to be a great solution for me. Thank you so much for your help!

  5. #5
    Join Date
    Feb 2011
    Location
    Columbus, OH
    Beans
    119
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Starting apps on separate workspaces

    Quote Originally Posted by dcollins View Post
    The application settings method looks to be a great solution for me. Thank you so much for your help!
    You are quite welcome
    Toshiba Satellite L875-s7230 / A6 2.7ghz dual-core piledriver w/ ATI Radeon HD 7520G / 8GB Corsair Vengeance DDR3-1600 RAM / 500 GB Seagate Momentus XT formatted JFS. >Wifi Drivers for this machine< My Deviant Screenshots

Tags for this Thread

Bookmarks

Posting Permissions

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