<?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>81769</bug_id>
          
          <creation_ts>2004-05-17 22:12:13 +0000</creation_ts>
          <short_desc>option to disable zmodem</short_desc>
          <delta_ts>2005-03-29 05:08:07 +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>unspecified</version>
          <rep_platform>openSUSE</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>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jonathan Felder">felder</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          
          
          <cf_commitlink></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>233790</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Felder">felder</who>
    <bug_when>2004-05-17 22:12:13 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs

I prefer to use zssh to handle zmodem transfers.  While I applaud the addition of additional features in konsole, it&apos;d be nice to have configuration options to turn off the additional features if they are not desired.

The reasons I&apos;d rather not use the konsole zmodem functionality are:

1.  There&apos;s no progress display for the file transfer.
2.  Files have a habit of not going where you save them.  For example, for a file named &quot;file&quot; if I&apos;m logged into a remote server and type sz file...the dialogue pops up and asks where to save it.  If I type /home/username/bin/file the file goes to /home/username/file

Rather than request the above changes, it&apos;d be better I think to allow the user to choose their own zmodem functionality should they wish behavior different than what konsole provides.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233791</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Felder">felder</who>
    <bug_when>2004-05-17 22:13:28 +0000</bug_when>
    <thetext>Woops sorry...I meant to select wish for this and not bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326696</commentid>
    <comment_count>2</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-03-22 08:00:42 +0000</bug_when>
    <thetext>According to the README.kiosk you should be able to put this in konsolerc:

[KDE Action Restrictions]
action_zmodem_upload=false

I&apos;ll have to test this to see if it works.

Personally, I&apos;d like to remove zmodem from Konsole.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329265</commentid>
    <comment_count>3</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-03-29 05:03:04 +0000</bug_when>
    <thetext>Put this in your konsolerc:

[KDE Action Restrictions]
action/zmodem_upload=false
zmodem_download=false

The first line will remove the Edit-&gt;ZModem Upload item; the second line will prevent konsole from recognizing zmodem transfers.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329266</commentid>
    <comment_count>4</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-03-29 05:08:07 +0000</bug_when>
    <thetext>CVS commit by hindenburg: 

Allow user to disable ZModem upload and download via kiosk.

[KDE Action Restrictions] 
action/zmodem_upload=false 
zmodem_download=false 

FEATURE: 81769


  M +13 -4     konsole.cpp   1.524


--- kdebase/konsole/konsole/konsole.cpp  #1.523:1.524
@@ -495,6 +495,8 @@ void Konsole::makeGUI()
       m_edit-&gt;insertItem( i18n(&quot;&amp;Send Signal&quot;), m_signals );
 
+   if ( m_zmodemUpload ) {
    m_edit-&gt;insertSeparator();
    m_zmodemUpload-&gt;plug( m_edit );
+   }
 
    m_edit-&gt;insertSeparator();
@@ -1025,6 +1027,11 @@ void Konsole::makeBasicGUI()
   m_renameSession = new KAction(i18n(&quot;&amp;Rename Session...&quot;), Qt::CTRL+Qt::ALT+Qt::Key_S, this,
                                 SLOT(slotRenameSession()), m_shortcuts, &quot;rename_session&quot;);
-  m_zmodemUpload = new KAction(i18n(&quot;&amp;ZModem Upload...&quot;), Qt::CTRL+Qt::ALT+Qt::Key_U, this,
-                                SLOT(slotZModemUpload()), m_shortcuts, &quot;zmodem_upload&quot;);
+
+  if (kapp-&gt;authorizeKAction(&quot;zmodem_upload&quot;))
+    m_zmodemUpload = new KAction( i18n( &quot;&amp;ZModem Upload...&quot; ), 
+                                  Qt::CTRL+Qt::ALT+Qt::Key_U, this,
+                                  SLOT( slotZModemUpload() ), 
+                                  m_shortcuts, &quot;zmodem_upload&quot; );
+
   monitorActivity = new KToggleAction ( i18n( &quot;Monitor for &amp;Activity&quot; ), &quot;idea&quot;, 0, this,
                                         SLOT( slotToggleMonitor() ), m_shortcuts, &quot;monitor_activity&quot; );
@@ -3778,4 +3785,6 @@ void Konsole::slotZModemUpload()
 void Konsole::slotZModemDetected(TESession *session)
 {
+  if (!kapp-&gt;authorize(&quot;zmodem_download&quot;)) return;
+
   if(se != session)
     activateSession(session);
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>