https://bugs.kde.org/show_bug.cgi?id=410381

Ahmad Samir <a.samir...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |UPSTREAM
             Status|REPORTED                    |RESOLVED

--- Comment #10 from Ahmad Samir <a.samir...@gmail.com> ---
This isn't a KIO bug AFAICS; it falls to the individual apps to handle such
issues.

FWIW, here's a hacky bash script that I use to make firefox always open links
on the current desktop:
#!/bin/bash
# get the current virtual desktop number
currDesktopNum=$(wmctrl -d | grep -F "*" | cut -d' ' -f1)

# get the title of any firefox window, if any exist, on the current desktop
ffWinTitle=$(wmctrl -l | grep Mozilla\ Firefox | grep -F "  "$currDesktopNum" "
| perl -p -e 's!.+?\s+\d .+? ([/\w].+)!$1!')

# if the title isn't empty, i.e. there's a firefox window on this desktop,
raise that window
# then call firefox --new-tab; otherwise call firefox --new-window
if [ ! -z "$ffWinTitle" ]; then
    wmctrl -a "$ffWinTitle"
    /usr/bin/firefox --new-tab "$@" &
else
    /usr/bin/firefox --new-window "$@" &
fi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to