<?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>443411</bug_id>
          
          <creation_ts>2021-10-06 20:37:28 +0000</creation_ts>
          <short_desc>Regression: %w and %t placeholders not available in bell notifications</short_desc>
          <delta_ts>2022-04-19 16:53:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>21.08.1</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Palus">jpalus+kde</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>avg</cc>
    
    <cc>jbb</cc>
    
    <cc>ninjalj</cc>
    
    <cc>philipp.keck</cc>
    
    <cc>tumaix</cc>
          
          <cf_commitlink>https://invent.kde.org/utilities/konsole/commit/0fe44c52310a6c276388cf30c81b6fc45a39da32</cf_commitlink>
          <cf_versionfixedin>v22.04.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2066853</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Palus">jpalus+kde</who>
    <bug_when>2021-10-06 20:37:28 +0000</bug_when>
    <thetext>Moving from https://invent.kde.org/utilities/konsole/-/issues/26

SUMMARY
After 67508680 konsole no longer passes widget when triggering notification for bell which in turns makes %w and %t placeholders unavailable.

STEPS TO REPRODUCE
1. Configure bell notification with execute command having %t placeholder

OBSERVED RESULT
%t placeholder is not replaced

EXPECTED RESULT
%t should be replaced with window title</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072713</commentid>
    <comment_count>1</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2021-10-27 16:18:48 +0000</bug_when>
    <thetext>Jonah Brüchert do you have to look at this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074334</commentid>
    <comment_count>2</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2021-11-02 22:06:21 +0000</bug_when>
    <thetext>Can you explain where you&apos;re getting %t?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074335</commentid>
    <comment_count>3</comment_count>
    <who name="Jan Palus">jpalus+kde</who>
    <bug_when>2021-11-02 22:25:29 +0000</bug_when>
    <thetext>Not sure if I follow, do you mean where it&apos;s replaced (https://invent.kde.org/frameworks/knotifications/-/commit/e25f1f552a9ce6b684e573f26c82cfc76bfcbe18) or how do I use it (for mimicking urgency hint in sway) or perhaps something else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074336</commentid>
    <comment_count>4</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2021-11-02 22:28:48 +0000</bug_when>
    <thetext>OK thanks that makes sense as to why my testing was confusing me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084341</commentid>
    <comment_count>5</comment_count>
    <who name="Andriy Gapon">avg</who>
    <bug_when>2021-12-10 09:36:36 +0000</bug_when>
    <thetext>I can confirm the same problem with, e.g., &apos;%w&apos; using Konsole 21.08.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090922</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-01-07 23:52:02 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/573</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092096</commentid>
    <comment_count>7</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2022-01-11 16:12:27 +0000</bug_when>
    <thetext>Git commit 0fe44c52310a6c276388cf30c81b6fc45a39da32 by Kurt Hindenburg, on behalf of Luis Javier Merino Morán.
Committed on 11/01/2022 at 15:57.
Pushed by hindenburg into branch &apos;master&apos;.

Pass widget again to KNotification on bell

67508680 refactored TerminalBell out from TerminalDisplay, and in the
process stopped passing the TerminalDisplay widget to KNotification,
which resulted in issues when notifications where configured to mark the
task bar entry or run a command with %w/%t substitutions (for window id
and window title).

Many thanks to Nicole Kleinhoff and Jan Palus who identified the commit
that introduced the regression.
Related: bug 445520, bug 443117

M  +3    -2    src/terminalDisplay/TerminalBell.cpp
M  +2    -1    src/terminalDisplay/TerminalBell.h
M  +1    -1    src/terminalDisplay/TerminalDisplay.cpp

https://invent.kde.org/utilities/konsole/commit/0fe44c52310a6c276388cf30c81b6fc45a39da32</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2118251</commentid>
    <comment_count>8</comment_count>
    <who name="">ninjalj</who>
    <bug_when>2022-04-19 16:53:34 +0000</bug_when>
    <thetext>*** Bug 452767 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>