[konsole] [Bug 393968] New: Konsole doesn't always respect the --profile command-line option when run from a custom shortcut key.

rob bugzilla_noreply at kde.org
Mon May 7 19:15:02 UTC 2018


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

            Bug ID: 393968
           Summary: Konsole doesn't always respect the --profile
                    command-line option when run from a custom shortcut
                    key.
           Product: konsole
           Version: unspecified
          Platform: Mint (Debian based)
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: ryampolsky at yahoo.com
  Target Milestone: ---

Created attachment 112484
  --> https://bugs.kde.org/attachment.cgi?id=112484&action=edit
'launcher' script to launch or activate a konsole session based on a
profile-set window title

version 16.04.03 (Mint 17.3 KDE)

I have konsole set up with several profiles, basically to generate different
colored windows for various terminals I use to ssh into a development AIX
system.  The profiles also specify a window title that I can search on to
activate the window via a hotkey.

Anyway, I've set up a bunch of 'launcher' scripts that let me configure hotkeys
to launch and re-activate these terminal sessions.  These scripts use xdotool
to search for the window title, and either launch konsole or windowactivate the
session if it's already running.

And it all works, except for some reason when I run the launcher to activate
the terminal with profile 'rs2' from a custom kwin shortcut, it launches
konsole, but the profile doesn't take.  Other launchers that differ only by the
profile name work fine.  And the rs2 launcher works fine if I run it from
another konsole window.  Just not when I run it from my hotkey.  So the first
time I launch my 'rs2' session, I need to manually select the profile after it
starts.  Again, this doesn't happen for other sessions with their own profiles.

I'm attaching the launcher script.  Again, a second launcher script that
differs from this one only with respect to the window title and profile used
works from a custom shortcut key.  Here are the diffs between the two:

rob at ry-desktop ~/bin/launchers $ diff launchjds.sh launchrs2.sh
3c3
< pid=`xdotool search --name jds`
---
> pid=`xdotool search --name rob`
6c6
<       konsole --profile jds -e ssh jds at rs2&
---
>       konsole --profile rs2 -e ssh rob at rs2&

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list