LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-04-2015, 07:42 PM   #1
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Why error: "The name org.xxx.yyy was not provided by any .service files" ?


I have a bash script which monitors selected users (my children) and logs them out when they reach a daily time limit. It works great... about half the time. The same command on the same computer sometimes works and sometimes fails. When it fails, there are error messages, but I don't know what they mean, or how to solve the problem.

Here is the line where it fails:
Code:
(set -x; su -c "( export DISPLAY=$x11display ; aplay --quiet doorbell.wav & zenity --notification --text=\"Logging out...\" --timeout=5 --display=$x11display ; gnome-session-quit --logout --no-prompt )" $active_user) &>> timekeeper.log
When it works, aplay plays a bell sound, zenity produces a notification on the screen, and gnome-session-quit logs out the user.

When it doesn't work, I still get the bell sound, but the notification does not appear and it does not log out the user.

With set -x, it writes the command to a log file, which shows correct (valid) values of the variables $x11display and $active_user. It also shows two error messages. Here are the corresponding lines from the log file when it fails:
Code:
+ su -c '( export DISPLAY=:0 ; aplay --quiet doorbell.wav & zenity --notification --text="Logging out..." --timeout=5 --display=:0 ; gnome-session-quit --logout --no-prompt )' max

** (zenity:18631): WARNING **: Error showing notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files

** (gnome-session-quit:18635): WARNING **: Failed to call logout: The name org.gnome.SessionManager was not provided by any .service files
Whenever the line fails, both errors always occur together, never just one or the other. If the failed command is repeated while the user remains logged in, it continues to fail every time. However, it the user logs out and later logs back in, it has about a 50-50 chance of working all right.

What the two error messages have in common is the part that says "The name org.xxx.yyy was not provided by any .service files". What does that mean, and is there a way to fix it?
 
Old 04-05-2015, 04:38 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
What Debian-version are you using?
What gnome-version is used?
 
Old 04-05-2015, 06:28 PM   #3
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Original Poster
Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Debian 7.8
gnome 3.4.2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
(SOLVED) "Error 403: Forbidden" when trying to download files from linuxfromscratch.org sdraw108 Linux From Scratch 1 01-02-2013 01:15 PM
[SOLVED] Replace a string @CURRANGE("***","***") to @CURRANGE("xxx","xxx") in a file mavadikarmayur Linux - Newbie 3 03-26-2012 08:32 AM
org.freedesktop.Hal was not provided by any .service files on running sync-engine akbarbasha Linux - Software 0 04-09-2009 12:30 AM
How to deal with SSHD invalid user XXXX from www.xxx.yyy.xxx 1kyle SUSE / openSUSE 1 09-30-2006 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:29 AM.

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
Open Source Consulting | Domain Registration