Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2017, 10:56 AM
|
#1
|
|
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842
Rep: 
|
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).
|
|
|
|
04-12-2017, 12:33 PM
|
#2
|
|
Senior Member
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398
|
I thought I've seen `wall` messages pop up in Notifications systray, do you have Notifications in your systray?
|
|
|
|
04-12-2017, 05:27 PM
|
#3
|
|
Senior Member
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 1,060
|
Quote:
Originally Posted by mfoley
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:
Any message sent to KDE should also remain in Notification Applet in the KDE tray for a bit of time
John
|
|
|
|
04-13-2017, 01:42 AM
|
#4
|
|
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842
Original Poster
Rep: 
|
Quote:
Originally Posted by jmccue
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:
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.
|
|
|
|
04-13-2017, 02:20 AM
|
#5
|
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
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.)
|
|
|
|
04-13-2017, 05:16 AM
|
#6
|
|
Member
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Debian, Slackware
Posts: 538
|
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.
|
04-13-2017, 11:59 PM
|
#7
|
|
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,842
Original Poster
Rep: 
|
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.
|
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|