Summary: | option to disable zmodem | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Jonathan Felder <felder> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Felder
2004-05-17 22:12:13 UTC
Woops sorry...I meant to select wish for this and not bug. According to the README.kiosk you should be able to put this in konsolerc: [KDE Action Restrictions] action_zmodem_upload=false I'll have to test this to see if it works. Personally, I'd like to remove zmodem from Konsole. Put this in your konsolerc: [KDE Action Restrictions] action/zmodem_upload=false zmodem_download=false The first line will remove the Edit->ZModem Upload item; the second line will prevent konsole from recognizing zmodem transfers. 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->insertItem( i18n("&Send Signal"), m_signals ); + if ( m_zmodemUpload ) { m_edit->insertSeparator(); m_zmodemUpload->plug( m_edit ); + } m_edit->insertSeparator(); @@ -1025,6 +1027,11 @@ void Konsole::makeBasicGUI() m_renameSession = new KAction(i18n("&Rename Session..."), Qt::CTRL+Qt::ALT+Qt::Key_S, this, SLOT(slotRenameSession()), m_shortcuts, "rename_session"); - m_zmodemUpload = new KAction(i18n("&ZModem Upload..."), Qt::CTRL+Qt::ALT+Qt::Key_U, this, - SLOT(slotZModemUpload()), m_shortcuts, "zmodem_upload"); + + if (kapp->authorizeKAction("zmodem_upload")) + m_zmodemUpload = new KAction( i18n( "&ZModem Upload..." ), + Qt::CTRL+Qt::ALT+Qt::Key_U, this, + SLOT( slotZModemUpload() ), + m_shortcuts, "zmodem_upload" ); + monitorActivity = new KToggleAction ( i18n( "Monitor for &Activity" ), "idea", 0, this, SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_activity" ); @@ -3778,4 +3785,6 @@ void Konsole::slotZModemUpload() void Konsole::slotZModemDetected(TESession *session) { + if (!kapp->authorize("zmodem_download")) return; + if(se != session) activateSession(session); |