Announcement

Collapse
No announcement yet.

Opening a web application in a specific virtual desktop

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Opening a web application in a specific virtual desktop

    If I try to open a web application in a virtual desktop, the application flips over to another virtual desktop where I have another application running and forms a new tab.

    How can I ensure that the application opens in a specific virtual desktop? - the one where the icon is present

    I am using the command line in the icon setting as: firefox %u url

    Thank you
    kubuntu version: 16.04.5 LTS

    Laptop: Toshiba-Satellite-L350

    #2
    Edit - maybe firefox -new-window is all that you need. Read on for a more involved approach.

    "Window Rules" can do most of this, at least in my 16.10. System settings -> Window Management -> Window Rules.

    It's not exactly what you want, in that the rule is not associated directly with the desktop icon, but by matching on the website you'd get close by starting firefox with -new-window. I've just created a rule:
    • that matches "firefox" on the "window class"
    • has a "Substring Match" on the "Window Title" for "Google"
    • on the "Size & Position" tab ticked Desktop "Force" and the desktop.

    then starting firefox -new-window www.google.com opened on that desktop.
    Regards, John Little

    Comment


      #3
      Thank you for the detailed response.

      I will try experimenting with 14.04.

      Best wishes.

      Edit:

      Just tried adding -new-window; that is, firefox -new-windows url.

      You are correct, all I needed to do was to add -new-window to the command line and it opened on the desktop.

      It appears that %u (firefox %u) is not needed
      Last edited by anonprivate; Feb 01, 2017, 09:34 AM. Reason: more information
      kubuntu version: 16.04.5 LTS

      Laptop: Toshiba-Satellite-L350

      Comment

      Working...
      X