LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles 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 05-16-2016, 04:10 PM   #1
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
What is -:0 ?


In htop I can see something running with the name "-:0"

I only find this when running kde.

I am curious about what -:0 is.
 
Old 05-16-2016, 04:58 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
My guess it is relates to the DISPLAY variable of X, which is basically the X session. If you were to Ctrl+Alt+F6 into a new terminal and startx from there (keeping your first one actice), or start some other X-based program that supports it (like steam), it would (should?) be assigned :1.
 
Old 05-16-2016, 05:25 PM   #3
magicm
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 237

Rep: Reputation: 152Reputation: 152
Truthfully, I'm extrapolating a little from your post, in trying to figure out exactly what you're asking. And I run xfce rather than kde. But htop would be showing the command line that started the processes it is tracking. I suspect that what you're referring to would be something that contains something similar to

some_command --display :0.0

In all probability some_command is expecting to utilize running X server, and you haven't set a DISPLAY environment variable. The DISPLAY would be where the Xserver is sending its graphic output - which is specified in three parts <hostname>:<display>.<screen> (where display and screen are zero-based sequences). When <hostname> hasn't been specified, it defualts to localhost

so, :0.0 is basically saying that some_command is to send its graphic output to the first (only?) available display used by the Xserver running locally.

For the real details (as opposed to what I cobbled together here) try typing
man X
in a terminal

Or, possibly I just answered a question you didn't ask
 
Old 05-16-2016, 06:16 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I think DISPLAY is an antiquated term, since many computers have multiple displays attached, and that number has nothing to do with them. It is tied to the X session rather than to a monitor.

(I wasn't trying to correct any of your info, just offering overall clarification.)
 
Old 05-16-2016, 06:56 PM   #5
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Original Poster
Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
It seems to be related to KDE

It doesnt change when I startx in another getty.

Last edited by Regnad Kcin; 05-16-2016 at 06:59 PM.
 
Old 05-16-2016, 07:03 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by Regnad Kcin View Post
In htop I can see something running with the name "-:0"
Hi...

Where is this symbol located in htop? What word or category is it next to or under?

Regards...
 
Old 05-16-2016, 11:40 PM   #7
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Original Poster
Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Question

Attached is a snapshot of htop in tree mode.

I am supposing now that it is part of KDE but it seems to be odd named handle for a procedure.
Attached Thumbnails
Click image for larger version

Name:	0.jpeg
Views:	71
Size:	196.0 KB
ID:	21797  
 
Old 05-17-2016, 12:05 AM   #8
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by Regnad Kcin View Post
Attached is a snapshot of htop in tree mode.

I am supposing now that it is part of KDE but it seems to be odd named handle for a procedure.
Hi...

The entry in question is from the KDE Display Manager and I'm pretty sure that "-:0" has to do with your display, as magicm mentioned.

Regards...
 
1 members found this post helpful.
Old 05-17-2016, 01:16 AM   #9
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by Regnad Kcin View Post
Attached is a snapshot of htop in tree mode.

I am supposing now that it is part of KDE but it seems to be odd named handle for a procedure.
I would assume someone using a nickname borrowed from a Firesign Theater skit would consider "odd" provocative and possibly hilarious like a clean windshield or a full tank of gas.

And, BTW, didja take a look at the prow on that steamer?
 
Old 05-17-2016, 01:42 AM   #10
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
root@darkstar:~# ls -l /proc/1126/exe
lrwxrwxrwx 1 root root 0 Svi 16 15:25 /proc/1126/exe -> /usr/bin/xdm*

edit:
just to be clear, that is the pid of -:0 currently on my computer
checking this as root is required

edit2:
the name in htop is from /proc/$pid/cmdline
usually the first argument (as in *argv[0]) passed to a starting program is its name, but in this case it is not

Last edited by genss; 05-17-2016 at 01:54 AM.
 
Old 05-17-2016, 06:40 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
KDM is the login screen provided by KDE. The :0 is absolutely the X session it is attached to (and why my Ctrl+Alt+F6 wouldn't add another :1, because KDM will only be used on the first X session, since all others will be logged in). I'm not sure why it is presented this way, but it is certainly no cause for alarm
 
Old 05-17-2016, 08:38 AM   #12
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Original Poster
Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
@enorbit: -:0 sort of looks like one of those Paul Frank julius-the-monkey faces.

I thought maybe one of those bullies from Commie Martyrs High School was mossing me
or maybe it was the bees and the spiders again...
 
  


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



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

All times are GMT -5. The time now is 11:51 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