LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-29-2007, 09:52 AM   #1
jlblom
LQ Newbie
 
Registered: May 2004
Location: Almere The Netherlands
Distribution: FC7-AMD_64
Posts: 19

Rep: Reputation: 0
program runs but doen't show on desktop


Hi,
I'm running Fedora fc7 on a AMD64 (1 Gb mem, >100GB disk) and after upgrading from fc5 to fc7 encountered the following problem.
Logged in as user joep I cannot run programs that require root privileges when I run then from the desktop. For example;
Clicking on the icon for upgrading - which starts pup) I get the usual request for the password. I enter the root password, the window disappears and nothing happens.
When I look with ps the application is running ( ps -ef|grep pup. The same goes with other root applications needing root permission.
However, I can open a root terminal with "su -" and run the program (e.g. pup) from the command line in the root terminal session.

One little detail: due to a apparently corrupt DVD upgrading was aborted and I had manually install all the missing packets.
It is not a rights problem, i am thinking of a problem in the link to the X-layer where not screen 0 but a nonexistent screen is used for the output. However, I assume I would then get an error message somewhere.
Does anybody have an idea where I have to look for the problem?
All information is welcome.
Joep
 
Old 10-30-2007, 07:03 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
When I look with ps the application is running ( ps -ef|grep pup. The same goes with other root applications needing root permission.
However, I can open a root terminal with "su -" and run the program (e.g. pup) from the command line in the root terminal session.
This sounds like you are starting pup in foreground when using the terminal, but starting in background when starting by clicking on the icon.

Have you tried clicking on the icon, run ps -ef|grep pup to get the PID, then bring the process to foreground? Does it show on the desktop then?
 
Old 10-30-2007, 08:03 AM   #3
jlblom
LQ Newbie
 
Registered: May 2004
Location: Almere The Netherlands
Distribution: FC7-AMD_64
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for your reaction, bigrigdriver, but that's not the problem here.
Pup is a graphical application under gnome, running on the desktop showing a window where you can install and upgrade packages. It's doesn't give the output to the console but shows it's window on the desktop. Pup, however, is only an example: all programs that need root access do the same. I think it has something to do with the root-window: the application directs the information to the root-window (desktop) instead of the user window. But my knowledge of X is not sufficient to trace this problem.
Joep
 
Old 10-30-2007, 01:58 PM   #4
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Rep: Reputation: 23
Quote:
Originally Posted by jlblom View Post
Thanks for your reaction, bigrigdriver, but that's not the problem here.
Pup is a graphical application under gnome, running on the desktop showing a window where you can install and upgrade packages. It's doesn't give the output to the console but shows it's window on the desktop. Pup, however, is only an example: all programs that need root access do the same. I think it has something to do with the root-window: the application directs the information to the root-window (desktop) instead of the user window. But my knowledge of X is not sufficient to trace this problem.
Joep
What you need is access to the root window under gnome, this link may help:
http://www.stevesearle.com/tech/desktop.html

KDE has a settingunder desktop behaviour to allow programs to control the root window; but as youre running Fedora 7 your desktop will be gnome, so I hope the link will help.
 
Old 10-30-2007, 06:09 PM   #5
jlblom
LQ Newbie
 
Registered: May 2004
Location: Almere The Netherlands
Distribution: FC7-AMD_64
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hal8000b View Post
What you need is access to the root window under gnome, this link may help:
http://www.stevesearle.com/tech/desktop.html

KDE has a settingunder desktop behaviour to allow programs to control the root window; but as youre running Fedora 7 your desktop will be gnome, so I hope the link will help.
Thanks for the tip.
However, I haven't expressed myself correctly. I didn't mean the root-window of the X-windows session for a certain user, but the window related to the user root, which apparently can't be shown on the X-windows session of the current user.
Sorry for the confusion.
I looked at the given URL and it is very clear and has helped me in the customization of my desktop.
Joep
 
  


Reply



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
How can I tell and change what user runs what program? flycast Linux - Newbie 2 12-12-2006 10:06 PM
How do i create a KDE desktop icon which runs a program using a different group-id? jcosenzo Linux - General 3 06-10-2006 09:44 AM
old radio show, my bong runs linux mattsoftnet General 1 02-28-2006 03:58 PM
successive runs of fsck show error logicalfuzz Linux - Software 1 09-22-2005 02:08 PM
program only runs as root mjkramer Linux - Newbie 5 11-22-2004 10:32 AM

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

All times are GMT -5. The time now is 07:20 PM.

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