1. otsug
  2. Yapan
  3. Issues
Issue #7 resolved

Can't start Yapan after logging out and back in in LXDE

Anonymous created an issue

Hello, congratulations on your great work! Yapan is the best front-end I found for pacman yet :D. I just have a little problem with it I've been trying to solve in the last couple of days. I'm using the upto-date version of LXDE (the one in the Arch repositories) with the Slim Login Manager. When I boot, Yapan works flawlessly, however if I logout and log back in the session I get the error prompt "Can't start more than one instance of the Yapan" when Yapan auto-starts. It's the only software so far I had had this problem with. I guessed it meant that when LXDE closed the session it didn't end the process properly so I tried using "kill pidof yapan", then logging-out and logging back in without success. I also tried "kill -KILL pidof yapan" unsucessfully. However if I close it by right-clicking it and "Quit", the problem doesn't appear but I don't find a way to end the process "the right way" from the command line. Another way of solving the problem is killing "lxsession" from an external terminal, which made me think Yapan used other processes that ended when I killed lxsession but didn't when I logged-out manually. I started to use Linux just some months ago and Arch just a couple of weeks ago so it's perfectly possible that the error lies in my configuration files and not in Yapan itself, I've been solving a lot of issues that appeared here and there using the Wikia and Google but I couldn't solve this one yet. I attach some of my initialization files that I think can be relevant, if you want any other extra information just ask me through here or send me an e-mail to facucosta@gmail.com and I'll answer as soon as I read it:

/etc/inittab {{{

!bash

/etc/inittab

Runlevels:

0 Halt

1(S) Single-user

2 Not used

3 Multi-user

4 Not used

5 X11

6 Reboot

Only one of the following two lines can be uncommented!

Boot to console

id:3:initdefault:

Boot to X11

id:5:initdefault:

rc::sysinit:/etc/rc.sysinit rs:S1:wait:/etc/rc.single rm:2345:once:/etc/rc.multi rh:06:once:/etc/rc.shutdown su:S:once:/sbin/sulogin -p

-8 options fixes umlauts problem on login

c1:2345:respawn:/sbin/agetty -i -8 -s 38400 tty1 linux c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux

c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux

c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux

c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

Serial Virtual Console for KVM and others VMs

s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

Hypervisor Virtual Console for Xen and KVM

h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

Example lines for starting a login manager

x:5:respawn:/usr/bin/xdm -nodaemon

x:5:respawn:/usr/sbin/gdm -nodaemon

x:5:respawn:/usr/bin/kdm -nodaemon

x:5:respawn:/usr/bin/slim >& /dev/null

End of file

}}}

/etc/xinit.rc: {{{

!bash

!/bin/sh

~/.xinitrc

Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi

setxkbmap cf,us exec startlxde

exec gnome-session

exec startkde

exec startxfce4

...or the Window Manager of your choice

kill -KILL pidof yapan #Here I tried killing the process manually but it didn't work.

}}}

/etc/slim.conf: {{{

!bash

Path, X server and arguments (if needed)

Note: -xauth $authfile is automatically appended

default_path /bin:/usr/bin:/usr/local/bin default_xserver /usr/bin/X xserver_arguments -nolisten tcp vt07

Commands for halt, login, etc.

halt_cmd /sbin/shutdown -h now reboot_cmd /sbin/shutdown -r now console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"

suspend_cmd /usr/sbin/suspend

Full path to the xauth binary

xauth_path /usr/bin/xauth

Xauth file for server

authfile /var/run/slim.auth

Activate numlock when slim starts. Valid values: on|off

numlock on

Hide the mouse cursor (note: does not work with some WMs).

Valid values: true|false

hidecursor false

This command is executed after a succesful login.

you can place the %session and %theme variables

to handle launching of specific commands in .xinitrc

depending of chosen session and slim theme

NOTE: if your system does not have bash you need

to adjust the command according to your preferred shell,

i.e. for freebsd use:

login_cmd exec /bin/sh - ~/.xinitrc %session

login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xession-errors 2>&1

Commands executed when starting and exiting a session.

They can be used for registering a X11 session with

sessreg. You can use the %user variable

sessionstart_cmd some command

sessionstop_cmd some command

Start in daemon mode. Valid values: yes | no

Note that this can be overriden by the command line

options "-d" and "-nodaemon"

daemon yes

Available sessions (first one is the default).

The current chosen session name is replaced in the login_cmd

above, so your login command can handle different sessions.

see the xinitrc.sample file shipped with slim sources

sessions xfce4,icewm,wmaker,blackbox

Executed when pressing F11 (requires imagemagick)

screenshot_cmd import -window root /slim.png

welcome message. Available variables: %host, %domain

welcome_msg Welcome to %host

Session message. Prepended to the session name when pressing F1

session_msg Session:

shutdown / reboot messages

shutdown_msg The system is halting... reboot_msg The system is rebooting...

default user, leave blank or remove this line

for avoid pre-loading the username.

default_user facucosta

Focus the password field on start when default_user is set

Set to "yes" to enable this feature

focus_password no

Automatically login the default user (without entering

the password. Set to "yes" to enable this feature

auto_login yes

current theme, use comma separated list to specify a set to

randomly choose from

current_theme archlinux-darch-white

Lock file

lockfile /var/lock/slim.lock

Log file

logfile /var/log/slim.log

}}}

P.S: By the way, the terminal command in LXDE (if you use the lxterminal) is: dbus-launch lxterminal -l -e "%1; echo && echo --- Finished ---";read

Comments (2)

  1. Log in to comment