Sponsored Content
Full Discussion: Need help installing Azureus
Operating Systems Linux SuSE Need help installing Azureus Post 56274 by norsk hedensk on Wednesday 29th of September 2004 11:19:33 PM
Old 09-30-2004
you are in an X session right? run it as whatever user you are logged in as.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

installing

hey i want to install freebsd 5.1 but i ran into some problems i have a old cpu, i made boot disks from kern.flp and mfsboot.flp from the cd, and boot up, when i'm done and gonna install, it won't find the cd, then i tryed to installed with ftp, but i coulden't figure out how to do, i have a DHCP... (5 Replies)
Discussion started by: ekizz
5 Replies

2. AIX

How to installing .h of Dt

hi, everybody£º i have a question, pls help me¡£ OS : RS/6000 AIX 4.3.3 cPU : Powerpc,POWER3 I install X11.Dt, X11.apps, X11.base, X11.compat, X11.motif, X11.vsm full and Optional install X11.fnt using smitty! When i compling my gui programs , i found that all the include file of ... (1 Reply)
Discussion started by: q30
1 Replies

3. Debian

installing X?

I just reformatted my computer because of a bad tip I and I installed only the base-system to add what I'd want later. My question is how/where can I get a good X-server for Debian? I'm so used to gnome and don't really like it and want to try something else. I heard about something called: Xfree... (1 Reply)
Discussion started by: riwa
1 Replies

4. AIX

Installing TL/ML's

Question from an AIX noob -- I recently installed an AIX box with what I thought was recent 5.3 media. After the install it was at ML 5300-00. My question is, it seems as if each ML/TL needs to be installed prior to the next - which currently makes 6(?) updates. Am I missing something - is... (4 Replies)
Discussion started by: tb0ne
4 Replies

5. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies

6. Ubuntu

Re Installing windows XP after installing KUBUNTU

Hi I have dual operating system i.e Win XP and KUBUNTU. Now my windows XP is corrupted and i want to reinstall Win XP. So i just want to know Shall i have to reinstall Linux also or i can only reinstall win xp without affecting linux installation. Thanks Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies
SD_SESSION_IS_ACTIVE(3) 				       sd_session_is_active					   SD_SESSION_IS_ACTIVE(3)

NAME
sd_session_is_active, sd_session_get_state, sd_session_get_uid, sd_session_get_seat, sd_session_get_service, sd_session_get_type, sd_session_get_class, sd_session_get_display, sd_session_get_tty, sd_session_get_vt - Determine state of a specific session SYNOPSIS
#include <systemd/sd-login.h> int sd_session_is_active(const char* session); int sd_session_get_state(const char* session, char** state); int sd_session_get_uid(const char* session, uid_t* uid); int sd_session_get_seat(const char* session, char** seat); int sd_session_get_service(const char* session, char** service); int sd_session_get_type(const char* session, char** type); int sd_session_get_class(const char* session, char** class); int sd_session_get_display(const char* session, char** display); int sd_session_get_tty(const char* session, char** tty); int sd_session_get_vt(const char* session, unsigned int* vt); DESCRIPTION
sd_session_is_active() may be used to determine whether the session identified by the specified session identifier is currently active (i.e. currently in the foreground and available for user input) or not. sd_session_get_state() may be used to determine the state of the session identified by the specified session identifier. The following states are currently known: "online" (session logged in, but session not active, i.e. not in the foreground), "active" (session logged in and active, i.e. in the foreground), "closing" (session nominally logged out, but some processes belonging to it are still around). In the future additional states might be defined, client code should be written to be robust in regards to additional state strings being returned. This function is a more generic version of sd_session_is_active(). The returned string needs to be freed with the libc free(3) call after use. sd_session_get_uid() may be used to determine the user identifier of the Unix user the session identified by the specified session identifier belongs to. sd_session_get_seat() may be used to determine the seat identifier of the seat the session identified by the specified session identifier belongs to. Note that not all sessions are attached to a seat, this call will fail for them. The returned string needs to be freed with the libc free(3) call after use. sd_session_get_service() may be used to determine the name of the service (as passed during PAM session setup) that registered the session identified by the specified session identifier. The returned string needs to be freed with the libc free(3) call after use. sd_session_get_type() may be used to determine the type of the session identified by the specified session identifier. The returned string is one of "x11", "tty" or "unspecified" and needs to be freed with the libc free(3) call after use. sd_session_get_class() may be used to determine the class of the session identified by the specified session identifier. The returned string is one of "user", "greeter", "lock-screen", or "background" and needs to be freed with the libc free(3) call after use. sd_session_get_display() may be used to determine the X11 display of the session identified by the specified session identifier. The returned string needs to be freed with the libc free(3) call after use. sd_session_get_tty() may be used to determine the TTY device of the session identified by the specified session identifier. The returned string needs to be freed with the libc free(3) call after use. sd_session_get_vt() may be used to determine the VT number of the session identified by the specified session identifier. This function will return an error if the seat does not support VTs. If the session parameter of any of these functions is passed as NULL, the operation is executed for the session the calling process is a member of, if there is any. RETURN VALUE
If the test succeeds, sd_session_is_active() returns a positive integer, if it fails 0. On success sd_session_get_state(), sd_session_get_uid(), sd_session_get_seat(), sd_session_get_service(), sd_session_get_type(), sd_session_get_class(), sd_session_get_display() and sd_session_get_tty() return 0 or a positive integer. On failure, these calls return a negative errno-style error code. NOTES
The sd_session_is_active(), sd_session_get_state(), sd_session_get_uid(), sd_session_get_seat(), sd_session_get_service(), sd_session_get_type(), sd_session_get_class(), sd_session_get_display() and sd_session_get_tty() interfaces are available as a shared library, which can be compiled and linked to with the libsystemd-login pkg-config(1) file. SEE ALSO
systemd(1), sd-login(3), sd_pid_get_session(3) systemd 208 SD_SESSION_IS_ACTIVE(3)
All times are GMT -4. The time now is 10:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy