<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>340165</bug_id>
          
          <creation_ts>2014-10-20 17:04:33 +0000</creation_ts>
          <short_desc>start new instance of running application with keyboard shortcut</short_desc>
          <delta_ts>2015-08-15 17:57:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Icons-only Task Manager</component>
          <version>5.1.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="apache">sabayon11</reporter>
          <assigned_to name="Eike Hein">hein</assigned_to>
          <cc>allo</cc>
    
    <cc>chrno-sphered</cc>
    
    <cc>flying-sheep</cc>
    
    <cc>petersaints</cc>
    
    <cc>xgdgsc</cc>
          
          <cf_commitlink>http://commits.kde.org/plasma-desktop/58b2a3d1bf7828698b02ea4778996f1b8796a982</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1477061</commentid>
    <comment_count>0</comment_count>
    <who name="apache">sabayon11</who>
    <bug_when>2014-10-20 17:04:33 +0000</bug_when>
    <thetext>I just checked new Plasma 5. There is no simple way to start a new instance of running application from  Icon tasks (and in default task manager too). User need to do right mouse click and choose option. That&apos;s not comfortable. I propose to introduce a new feature: Ctrl (or Shift) +click on icon to start a new instance of running application.

A bit of off-topic:
I wish more attention would be given to Icon task appearance in Plasma 5. I suggest reconsider Bug 298490 Icons in Icon Task Manager are too small. 
I wish I could get rid of separate panel to keep launchers/shortcuts and use Icon task with option &quot;Show a Launcher when not running&quot; and be able to start multiple instances of application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479062</commentid>
    <comment_count>1</comment_count>
    <who name="Philipp A.">flying-sheep</who>
    <bug_when>2014-11-01 13:05:25 +0000</bug_when>
    <thetext>or, as it is done almost anywhere: middle click starts a new instance.

confirming as regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479067</commentid>
    <comment_count>2</comment_count>
    <who name="Philipp A.">flying-sheep</who>
    <bug_when>2014-11-01 13:50:25 +0000</bug_when>
    <thetext>i’ve found a quick fix:

change this:
https://projects.kde.org/projects/kde/workspace/plasma-desktop/repository/revisions/master/entry/applets/taskmanager/package/contents/ui/Task.qml#L56
to:
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.RightButton | Qt.MiddleButton

and add to this:
https://projects.kde.org/projects/kde/workspace/plasma-desktop/repository/revisions/master/entry/applets/taskmanager/package/contents/ui/Task.qml#L92
code to create a new instance if the button was Qt.MiddleButton</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479356</commentid>
    <comment_count>3</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2014-11-03 12:51:11 +0000</bug_when>
    <thetext>Middle-click actually tends to *close* things most of the time (browser tab bars, Present Windows, ...) so it&apos;s not a good idea to use it for launching new instances. Shift+Click makes more sense there I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479362</commentid>
    <comment_count>4</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2014-11-03 13:38:13 +0000</bug_when>
    <thetext>Git commit 58b2a3d1bf7828698b02ea4778996f1b8796a982 by Eike Hein.
Committed on 03/11/2014 at 13:37.
Pushed by hein into branch &apos;master&apos;.

Launch new instances on Shift+Click.

M  +3    -1    applets/taskmanager/package/contents/ui/Task.qml
M  +2    -0    applets/taskmanager/package/contents/ui/main.qml
M  +9    -0    applets/taskmanager/plugin/backend.cpp
M  +1    -0    applets/taskmanager/plugin/backend.h

http://commits.kde.org/plasma-desktop/58b2a3d1bf7828698b02ea4778996f1b8796a982</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479417</commentid>
    <comment_count>5</comment_count>
    <who name="Philipp A.">flying-sheep</who>
    <bug_when>2014-11-03 20:36:25 +0000</bug_when>
    <thetext>but then i need two hands, with 3 unused buttons on my mouse…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1509866</commentid>
    <comment_count>6</comment_count>
    <who name="Pedro Albuquerque Santos">petersaints</who>
    <bug_when>2015-04-10 16:56:31 +0000</bug_when>
    <thetext>Comment #3 gives a reason on why middle click should not be used to launch a new instance, however I disagree. There are already situations in which middle clicking is used to launch new &quot;things&quot; and not just to close &quot;things&quot;. For example, on Chrome and Firefox middle clicking a link or a bookmark launches it on a new tab.

So, could you please add the possibility of middle clicking to launch a new instance? Or at least make it an option that we users can enable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1509951</commentid>
    <comment_count>7</comment_count>
    <who name="Philipp A.">flying-sheep</who>
    <bug_when>2015-04-11 13:20:43 +0000</bug_when>
    <thetext>&gt; For example, on Chrome and Firefox middle clicking a link or a bookmark launches it on a new tab.

yeah! so this behavior is even expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1509952</commentid>
    <comment_count>8</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2015-04-11 13:33:52 +0000</bug_when>
    <thetext>And middle-clicking on a tab closes that tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1509967</commentid>
    <comment_count>9</comment_count>
    <who name="Philipp A.">flying-sheep</who>
    <bug_when>2015-04-11 15:55:54 +0000</bug_when>
    <thetext>yes. so are task bars tabs or bookmarks/links?

they are both: they indicate the status of applications (launched or not, like tabs), but pinning a launcher also makes them bookmarks/links.

so why not make it configurable?

Middle click action: (x) Launch new instance ( ) Close window

with this default and choice, people would have more functionality and there wouldn’t be bad surprises, as a new instance started when you want to close a window is less annoying than closing a window while wanting to start a new instance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519086</commentid>
    <comment_count>10</comment_count>
    <who name="Soukyuu">chrno-sphered</who>
    <bug_when>2015-05-15 23:18:10 +0000</bug_when>
    <thetext>FWIW, the kde4 version of icontasks had this configurable. Personally, I prefer middle button click to handle that.

Also, if shit+click is the current behavior, why isn&apos;t it stated in the right-click menu? It says &quot;Icon-only task manager settings... Alt+D,S&quot;, but &quot;Start new Instance&quot;. It should be &quot;Start new instance Shift+Click&quot; or something. I&apos;d never figure out how to start a new instance had I not found this bug report tbh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519088</commentid>
    <comment_count>11</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2015-05-15 23:40:39 +0000</bug_when>
    <thetext>It&apos;ll be configurable in Plasma 5.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1537090</commentid>
    <comment_count>12</comment_count>
    <who name="Alex">allo</who>
    <bug_when>2015-08-15 17:57:43 +0000</bug_when>
    <thetext>Middle click seems more reasonable, as a program icon is just a a link ... it opens a new instance(tab). Middle click on the application icon in a taskbar could close it (as doubleclick there does)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>