LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2017, 10:56 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842

Rep: Reputation: 194Reputation: 194
Is there a setting for KDE wall messages?


When e.g. a cron job sends a `wall` message, if does flash up on the KDE desktop, for only for a couple of seconds making it difficult to read the message. Is there a setting to control the time the message is displayed? This link https://lists.debian.org/debian-kde/.../msg00265.html mentions
Quote:
Kcontrol / KDE Components / Service Manager. Enable kwrite daemon
(which is for trapping "write" and "wall" output, nothing to do with
the kwrite editor !)
but I've not found anything like this in my KDE (4.14.27).
 
Old 04-12-2017, 12:33 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
I thought I've seen `wall` messages pop up in Notifications systray, do you have Notifications in your systray?
 
Old 04-12-2017, 05:27 PM   #3
jmccue
Senior Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 1,060
Blog Entries: 1

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Quote:
Originally Posted by mfoley View Post
When e.g. a cron job sends a `wall` message
I do not understand what you mean by 'cron job', I would not expect any message to be sent to KDE from a cron job.

But if you have a background process calling notify-send, you can use '--expire-time=TIME', see:
Code:
notify-send --help
Any message sent to KDE should also remain in Notification Applet in the KDE tray for a bit of time

John
 
Old 04-13-2017, 01:42 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842

Original Poster
Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by jmccue View Post
I do not understand what you mean by 'cron job', I would not expect any message to be sent to KDE from a cron job.
Why not? Actually, cron jobs are perfect candidates. In my current case, if a cron scheduled system backup starts, I want to notify the user that a backup is starting.

Quote:
But if you have a background process calling notify-send, you can use '--expire-time=TIME', see:
Code:
notify-send --help
Any message sent to KDE should also remain in Notification Applet in the KDE tray for a bit of time

John
I checked out `notify-send --help`. Pretty terse, no man page. I followed an example I found on the web:
Code:
$ notify-send 'Title of the message' 'Text of the message'
(as root). Nothing showed up on the KDE desktop.

glorsplitz: Yes, the `wall` notification does pop-up on the KDE desktop, but it's very brief, a few seconds. I'd like to make the display duration longer.
 
Old 04-13-2017, 02:20 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672Reputation: 6672
Maybe you could switch to something simpler like xmessage. If you don't set a timeout, it waits until you press the "okay" button.

Code:
xmessage "Your message here"
(Although, this isn't a very "pretty" option.)
 
Old 04-13-2017, 05:16 AM   #6
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Debian, Slackware
Posts: 538

Rep: Reputation: 278Reputation: 278Reputation: 278
Like jmccue said, you can use something like this to display a message for 5 seconds (adjust as needed)
Code:
notify-send -t 5000 "message title" "this is the message body you want to display"
Note: this is not system wide, and will display message to the user that runs it.
if you run as root and want other user to get the message, try this
Code:
su -c 'notify-send -t 5000 "message title" "this is the message body you want to display"' username
 
1 members found this post helpful.
Old 04-13-2017, 11:59 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842

Original Poster
Rep: Reputation: 194Reputation: 194
Both notify-send and xmessage work as you've all advertised. The problem is that they must be run as the user getting the message, as Slax-Dude suggested, and a) I want any/all users to get the message (like `wall`), but more importantly b) the main user on this workstation has no password and I can't do `su` to a user without a password (and spare the comments about not having a password, yes, yes, I know all the reasons):
Code:
# su -c "xmessage 'the message'" maher
No passwd entry for user 'maher'
So, perhaps a different angle on this question ... Since the Notification Applet shows these messages, is there a Notification Applet setting for how long such messages show before disappearing? So far I've not found anything searching for this.

System Settings > Application and System Notifications > Manage Notifications > Event Source: "Local system message services", does `wall`, and there is an option (checked) to 'Show a message in a popup', but I find no popup duration settings. Maybe this is not configurable?

Last edited by mfoley; 04-14-2017 at 12:15 AM.
 
  


Reply

Tags
kde



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Setting limit for Qmail outgoing messages Raakh5 Linux - Newbie 1 10-21-2015 12:27 AM
Where are KDE error messages? lucmove Linux - Desktop 4 06-25-2009 01:15 PM
KDE error messages. digger95 Slackware 5 04-20-2008 04:28 PM
wall messages under X Artanicus Linux - Software 6 06-28-2005 08:59 PM
wall does not work with kde users jonavogt Linux - Newbie 1 12-30-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:14 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions