Re: KDE Logout Script

2004-04-07 Thread Oswald Buddenhagen
On Tue, Apr 06, 2004 at 10:53:39PM +, Bub Slug wrote:
> Can anyone shed some light on how I get a script to execute when I exit
> KDE.
> 
have a look at the end of startkde, it should become obvious from that.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




[a.licher@mbn.de: [Bug 77995] New: kdmgreet crashes when doing /etc/init.d/kdm restart and xfstt is running and its usage is configured in /etc/X11/XF86Config-4]

2004-03-19 Thread Oswald Buddenhagen
does this sound familiar to somebody?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
--- Begin Message ---
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.
  
http://bugs.kde.org/show_bug.cgi?id=77995  
   Summary: kdmgreet crashes when doing /etc/init.d/kdm restart and
xfstt is running and its usage is configured in
/etc/X11/XF86Config-4
   Product: kdm
   Version: unspecified
  Platform: Debian stable
OS/Version: Linux
Status: UNCONFIRMED
  Severity: crash
  Priority: NOR
 Component: general
AssignedTo: ossi kde org
ReportedBy: a.licher mbn de


Version:(using KDE KDE 3.2.0)
Installed from:Debian stable Packages
OS:  Linux

I want to use TrueType-Fonts under KDE 3.2 on Debian woody (KDE 3.2 binary 
packges downloaded and installed from the official KDE download servers).

I did the following according to http://www.tldp.org/HOWTO/TT-Debian-3.html 
(TrueType under Debian Mini-HOWTO):

1. apt-get install xfstt
   # install & run xfstt

2. copied some Windows TrueType fonts to /usr/share/fonts/truetype
   (all font files have lowercase names) 
   # fonts to font directory

3. chmod 0444 /usr/share/fonts/truetype/*
   # set correct rights

4. /etc/init.d/xfstt force-reload
   # reload font server config

5. /etc/X11/XF86Config-4
   Section "Files"
   FontPath   "unix/:7101"  # <-- xfstt
   FontPath   "unix/:7100"
   ...
   EndSection
   # added FontPath for xfstt

5. /etc/init.d/kdm restart
   # restart kdm

6. kdmgreet #crashes# with window displaying the "KDE crash bomb",
   telling that kdmgreet caused the SIGSEGV signal ...

When stopping xfstt, everything runs very well again.
--- End Message ---


Re: KDM hang after login

2004-03-09 Thread Oswald Buddenhagen
On Tue, Mar 09, 2004 at 09:41:18AM +, Andrew Ingram wrote:
> Is there a way to make KDM default to selecting KDE as the session type?
> 
sure there would be, but i think "default" is a better default.
to make "default" kde for all users (like it is in upstream kde), you have
to patch Xsession.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Upgrade to KDE-3.2.1

2004-03-08 Thread Oswald Buddenhagen
On Mon, Mar 08, 2004 at 02:36:00PM +0100, Hendrik Sattler wrote:
> I am somewhat tired to redo my configuration of KDM every time an upgrade 
> comes in. There are so many changes in the config file that I somewhat doubt 
> that it will run with my old config file.
> That may be because the current "simple diffing of config files" with dpkg 
> really sucks.
> 
the answer to these problems is genkdmconf. "overwrite" should call it
with --no-old, "keep" without options. with some minor patching it could
be perfectly integrated into the debian packaging system.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: GUI Interface To KDM

2004-02-29 Thread Oswald Buddenhagen
On Sun, Feb 29, 2004 at 09:21:30PM -0500, Robert Tilley wrote:
> Does a GUI interface to kdm exist?  The documentation for kdm instructs that 
> the addition of new session types has changed in 3.2 but does not include 
> examples.
> 
there is a whole load of them in /usr/share/apps/kdm/sessions (or
something like that, dunno the debian packaging exactly).
a gui is planned, btw. i prefer non-gui work, though, so if somebody
else wants to do it ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDE3.2 greeter plugin

2004-02-08 Thread Oswald Buddenhagen
On Sun, Feb 08, 2004 at 04:35:34PM -0600, Chris Cheney wrote:
> On Sat, Feb 07, 2004 at 04:08:38PM +0100, Oswald Buddenhagen wrote:
> > that's another case of "the packagers screwed it ;)". the greeter
> > plugins are located in the kdm sources, but are shared between
> > kdesktop_lock and kdm -> separate package on which kdm and kdesktop (or
> > whatever the package is named) must depend on.
> 
> Or alternatively, upstream is fucking braindead and threw shit together
> randomly and called it kdebase... 8)
> 
yes, but you're not supposed to say that aloud ... :

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDE3.2 greeter plugin

2004-02-07 Thread Oswald Buddenhagen
On Sat, Feb 07, 2004 at 02:19:15PM +, Michael Rex wrote:
> I upgraded to KDE 3.2 without much hassle, yet there is one problem I
> can't find a solution for. When i try to lock the screen it fails
> saying:
> 
> "Will not lock the screen, as unlocking would be impossible:
> No appropriate greeter plugin configured."
> 
install kdm and everything will be fine.
that's another case of "the packagers screwed it ;)". the greeter
plugins are located in the kdm sources, but are shared between
kdesktop_lock and kdm -> separate package on which kdm and kdesktop (or
whatever the package is named) must depend on.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDM + environment variables

2003-10-04 Thread Oswald Buddenhagen
On Sat, Oct 04, 2003 at 11:01:45AM +0200, Sebastian Seifert wrote:
> > if you'd be using kdm's upstream Xsession, it would source ~/.profile
> > and additionally ~/.xprofile for x-specific settings.
> > but as debian has a somewhat strict policy, you are screwed. :-P
> > no, seriously: save this script as /etc/X11/Xsession.d/98private-sripts:
> 
> Thanks. I guess there is no "legal" way for a user to do what I want to do 
> (set an environment variable without sacrificing window manager choosing).
>
yup

> Should I file a bug?
>
i'd say yes (but, i bet there was already a bug filed :).
simply forward the contents of my mail, maybe.

> If so, on which package? xfree86-common?
>
yes

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDM + environment variables

2003-10-03 Thread Oswald Buddenhagen
On Fri, Oct 03, 2003 at 10:52:17AM +0200, Børre Gaup wrote:
> duorastat, golggotmánu 2. b. 2003 17.41, Sebastian Seifert ??álii:
> > I want to be able to select different window managers from the login
> > prompt, so I cannot just set up an ~/.xsession file that sets the
> > variable and then starts kde.
> >
> Use a file called ~/.xsession, and set your variables there.
> 
*groan* ...

if you'd be using kdm's upstream Xsession, it would source ~/.profile
and additionally ~/.xprofile for x-specific settings.
but as debian has a somewhat strict policy, you are screwed. :-P
no, seriously: save this script as /etc/X11/Xsession.d/98private-sripts:

-
readonly STARTUP   #so users cannot override the system policy

DM_PATH=$PATH
test -f /etc/profile && . /etc/profile
test -f $HOME/.profile && . $HOME/.profile
IFS_SAVE=$IFS
IFS=:
for i in $PATH; do
case :$DM_PATH: in
  *:$i:*) ;;
  ::) DM_PATH=$i;;
  *) DM_PATH=$DM_PATH:$i;;
esac
done
IFS=$IFS_SAVE
PATH=$DM_PATH
export PATH

test -f /etc/xprofile && . /etc/xprofile
test -f $HOME/.xprofile && . $HOME/.xprofile
-

the DM_PATH voodoo is there to merge the path kdm set with the one set
in .profile. if you consider this superflous (on a standard debian
installl it is ...), simply remove it.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdm newbie question

2003-09-30 Thread Oswald Buddenhagen
On Tue, Sep 30, 2003 at 09:13:09AM +, Michael Knigge wrote:
> is it possible to run kdm without running a local X-Server?
> 
sure. :)

> 
> Some machines should be able to connect my server running kdm. But I 
> don't want my local server to start Xfree because I don't need it and 
> I don't like graphical stuff on a server
> 
> 
hmm, you know how to use xdmcp but not how to disable the local xserver?
_that's_ strange ... ;-)
see Xservers ... it's right next to Xaccess, which you should have at
least looked at ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Starting of new session from other windowmanagers

2003-09-15 Thread Oswald Buddenhagen
On Mon, Sep 15, 2003 at 03:58:08PM +0200, Norbert Preining wrote:
> What is the interface to this feature?
>
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kdm/README?rev=2.21&content-type=text/x-cvsweb-markup
section "the command fifos"

note that this interface is not guaranteed to stay stable; it's even
probable that it will change.

> (With kdm running of course.
> I think this is not possible with some different display manager
> running.)
> 
actually gdm has the same feature (it's called flexi-servers), but it 
has a different interface ...
i hope to standardize with the gdm guy, maybe based on d-bus when it
becomes available for good.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Setting variables?

2003-09-11 Thread Oswald Buddenhagen
On Thu, Sep 11, 2003 at 11:06:22AM -0700, Steve Lamb wrote:
> On Thu, 11 Sep 2003 12:34:35 -0500
> Chris Cheney <[EMAIL PROTECTED]> wrote:
> > I am not sure if there are other ways but kdm does set LANG via pam_env
> > /etc/environment if you have one. If you are missing that file run
> > dpkg-reconfigure locales.
> 
> That worked but it isn't what I'd consider ideal.  I saw some archived
> messages about putting LANG exports into .xsession or .Xsession but that
> hasn't worked for me.
>
you have to make sure these files are executed at all ... in kdm's
default install this means choosing the "default" session type.

> Forcing all users into English is bad as one of 'em is
> from Germany.  :)
> 
fwiw, i'm positive to have real per-user language selection in kdm for
kde 3.2.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDM/X authorization problems on a laptop

2003-09-06 Thread Oswald Buddenhagen
On Sun, Sep 07, 2003 at 12:12:27AM +0200, Kjetil Kjernsmo wrote:
> so I set 
> DISPLAY=:0.0
> export DISPLAY 
> and then go 
> xhost +
> which says 
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xhost:  unable to open display ":0.0"
> 
> uh, so it won't even let root do that... 
> 
most network connections give a shit about the user they come from, if
he cannot prove who he is. ;)
export XAUTHORITY=~kjetil/.Xauthority

i don't expect this to help with the real problem, though.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDE and Ctrl+Alt+Del

2003-07-15 Thread Oswald Buddenhagen
On Tue, Jul 15, 2003 at 08:49:22AM +0200, BiGgUn wrote:
> How can i customize the menu displayed by KDE when i pressed
> Ctrl+Alt+Del? I would like to add the 'Lock Screen' entry .
> 
you can't.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kde 3.1.1 login manager

2003-05-27 Thread Oswald Buddenhagen
On Sat, May 24, 2003 at 07:48:15PM +0200, Mauro Darida wrote:
> On Tuesday 20 May 2003 12:01, Oswald Buddenhagen wrote:
> > currently impossible.
> > do you want to do this to ensure that only users with an account can
> > shut down the box?
ok, you mostly confimed this, but ...

> I have a laptop which sometimes I need to leave unguarded for a short time.
>
making a "proper" shutdown impossible does not exactly make it safer ...

> I tried the lock screen but discovered it doesn't lock anything
> because anyone with keyboard access can open a new X-session.
>
you mean the "new session" button? you can disable this. check the
readme.
if you configure some xlock hack as the screensaver, you also have the
option to disable vt switching ... hmm - that should be also doable with
native kde savers ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kde 3.1.1 login manager

2003-05-20 Thread Oswald Buddenhagen
On Sun, May 18, 2003 at 08:10:16AM +0200, Mauro Darida wrote:
> I was wondering how to remove the turn off computer option during
> login of a normal user but allowing a normal user to turn off computer
> on logout.
> 
currently impossible.
do you want to do this to ensure that only users with an account can
shut down the box?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: dcopclient

2003-04-22 Thread Oswald Buddenhagen
On Tue, Apr 22, 2003 at 04:16:16PM -0500, Jay Kline wrote:
> I am trying to write some scripts that will give me access to kdm features 
> from non-kde envionments..   specificly the shutdown, reboot, and newsession 
> options.
> 
/usr/share/doc/kdm/README, i think. otherwise
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kdm/README?rev=2.18&content-type=text/x-cvsweb-markup

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: /.qt directory

2003-04-14 Thread Oswald Buddenhagen
On Sun, Apr 13, 2003 at 08:04:47PM -0500, Chris Cheney wrote:
> On Mon, Apr 14, 2003 at 02:36:52AM +0200, Ralf Nolden wrote:
> > I think madkiss and I agreed on /etc/X11/qt or something. Oswald, any idea 
> > if 
> > KDM writes those settings to /.qt and how you could influence that with KDM 
> > ?
> > 
> > Ralf
> 
> BTW I also see it writes stuff into /tmp/(somenumber)/.qt so should it
> be writing both of these?
> 
no, it should write only the /tmp/ one. dunno where the other comes
from - we had this problem back in the 2.x days ...
anybody cares to debug?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDM and screensavers

2003-04-08 Thread Oswald Buddenhagen
On Tue, Apr 08, 2003 at 07:01:21AM -0400, Stephen Gran wrote:
> I'm trying out KDE 3.1 (running sid), and I was wondering if there is
> a way to run a screensaver on the greeter,
>
not yet. i received a partial patch from somebody, so if you want to
finish it ... ;-)

greetings


-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDE3.1, XFree4.3, SID problem

2003-04-08 Thread Oswald Buddenhagen
On Mon, Apr 07, 2003 at 08:17:26PM +0200, Ondrej Kudlik wrote:
> linux kernel 2.5.65.
>
i think that explains the problem ...

> when I log off or shutdown (from kicker applet) or Ctrl+Alt+Backspace
> - my computer hang

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: KDE 3.1.1: audio group, pam.d?

2003-04-04 Thread Oswald Buddenhagen
On Fri, Apr 04, 2003 at 08:09:48AM -0800, Albert Schueller wrote:
>  kdm;*;*;Al-2400;audio
> 
> This setup actually works.  When a user logs in they are temporarily
> added to the audio group and sound works.  My problem is with the second
> field which represents the tty that the user is logged in under.  For
> kdm from the console this is ":0".  If I use this for the tty field
> instead of the wildcard "*", users don't get added to the audio group
> and there's no sound.  I tried escaping the colon, e.g. \:0, but that
> actually causes a complete failure to login using kdm.  I tried both
> "*:0" and ":0*" Thinking there might be leading or trailing whitespace
> in the tty name, neither worked.  
> 
that's a bug in PAM i reported almost two years ago (and posted a
(partial?) patch, even). i didn't look recently, but last time i checked
they still have not reacted. :(

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Shutdown from KDE

2003-04-04 Thread Oswald Buddenhagen
On Fri, Apr 04, 2003 at 01:43:52PM +0200, Kercso Jozsef wrote:
> Only the screen goes blank,
> and I can't even change the virtual terminals.
> 
very probably this indicates a bug in the x-server.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: which display is active and which user is logged in? (kdm?)

2003-04-02 Thread Oswald Buddenhagen
On Thu, Apr 03, 2003 at 02:35:48AM +0200, Achim Bohnet wrote:
> Great one peace more of the puzzle.  Here fgconsole works also for normal 
> user:
> [...] 
> It this a (security) bug?
>
no, that's a bit permission magic done by PAM and/or the Xstartup
script. every system does something different here ...

> I've tried
>   echo some garbage > /dev/tty8
> but :1 (on vt8) is still working.
>
the x-server does not use the tty, it uses the vc. when the server is
gone you can switch to the vt and see the garbage you put there.

> Back on topic ;)  Missing is now  vt# -> display#.  I hacked this little
> script.
>
this is the only way to get this information. :-(

> (Better methods that work with {k,g,w,x}dm etc welcome.)
> 
i'll build this into kdm's query interface, but behind the scenes kdm
has no other choice than to a) do the same or b) enforce a vc with vtX
on the server command line.

> #!/bin/bash
> vtnum=`fgconsole`
> match=`grep -l " using VT number $vtnum$" /var/log/XFree86.*.log`
> if [ "$match" ]; then
> display="${match#/var/log/XFree86.}"
> display="${display%.log}"
> user="`who | grep " :$display " | awk '{print $1}'`"
> echo display=:$display
> echo user=$user
>   # groups $user | grep -q camera && exec su - $user  "DISPLAY="$display" 
> exec digikam 
>   exit 0
> else
>   exit 1
> fi
>
this scipt will fail if an already terminated server used the same
display as another currently running one. you should only check the logs
of currently running displays, i.e., loop on the display entries from
`who`.

greetings

>   To me vi is Anti-Virus software:  Signature not copied ;)
> 
grinch! ;)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: which display is active and which user is logged in? (kdm?)

2003-04-02 Thread Oswald Buddenhagen
On Wed, Apr 02, 2003 at 08:29:16PM +, David Pye wrote:
> However, I'm not sure how you 
> can find out which one is currently being displayed.
> 
oh, right, i forgot that part. fgconsole. but this works only as root,
so you need to define a sudo rule if a regular user should be able to
execute it. alternatively you can make it suid root, but somehow i doubt
that this is a good idea.

greetings


-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: which display is active and which user is logged in? (kdm?)

2003-04-02 Thread Oswald Buddenhagen
On Wed, Apr 02, 2003 at 08:12:54PM +0200, Achim Bohnet wrote:
> Is there a kdm setting to turn on to find out what display is the active one
> and if/what user is logged in there?  
>
try "who". this requires that sessreg is used in Xstartup/Xreset, though.

> Other ways to get this info?
> 
none i'd know.
i'm planning to add a query interface to kdm. that's pretty low on the
todo list, though.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdm restarts the x server twice and then gives up

2003-03-31 Thread Oswald Buddenhagen
On Sun, Mar 30, 2003 at 05:37:52PM -0500, [EMAIL PROTECTED] wrote:
> Mar 30 22:06:53 danscomputer kdm[17514]: Greeter exited unexpectedly
> Mar 30 22:06:53 danscomputer kdm[17514]: Abnormal helper termination, code 
> 127, signal 0
> 
what does /var/log/kdm.log say?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Dirty hack to use KDE Widgets in QT Designer

2003-03-25 Thread Oswald Buddenhagen
On Tue, Mar 25, 2003 at 01:29:35AM +0100, Ralf Nolden wrote:
> On Monday 24 March 2003 23:13, Carlos Acedo wrote:
> > After a long search of the web I found a solution to use KDE Widgets in
> > designer ( except kfontcombo :( ) in a gentoo forum ( at least very
> > similar to the solution ):
> 
> Huh ?? You can already use them in KDE 3.1, kdelibs has a plugin library for 
> designer for all KDE widgets (kdewidgets.so IIRC) so they directly pop up in 
> designer for point+ click use :-)
>
that's not the point. he is proposing a workaround for a glibc 2.3.1 bug that
makes programs segfault when they dlopen() a lib they have dlclose()d before.

> > //if ( dlclose( pHnd ) ) {
> > #if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT)
> > qWarning( "%s", dlerror() );
> > #endif
> > return FALSE;
> > //   }
> >
the variant i know comments out the whole block, pretending the unload
succeeded. doesn't seem to matter much ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: 3.1.1 logout problem.

2003-03-24 Thread Oswald Buddenhagen
On Tue, Mar 25, 2003 at 12:44:24AM +0100, Ralf Nolden wrote:
> > > > Have a problem with 3.1.1, running kdm, when logging out of a kde
> > > > session, the splash screen comes up again and fires up kde (kdm isn't
> > > > shown).
>
are you sure, that this happens only with kdm? tried startx?

> > I had this problem before but it was solved in 2.2.2 if I remember correct.
> >
yeah, that turned out to be a ksmserver problem. that's why i'm asking
whether it depends on kdm.

> Please get together and try to collect as much information as possible, then 
> file a bugreport at bugs.kde.org.
>
or reopen the old report if you find sufficient evidence that it's the
same problem.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdm and qt-3.1.2

2003-03-13 Thread Oswald Buddenhagen
On Tue, Mar 11, 2003 at 02:01:44PM +0100, Oswald Buddenhagen wrote:
> On Tue, Mar 11, 2003 at 10:43:24AM +0100, Ralf Nolden wrote:
> > On Dienstag, 11. März 2003 07:57, Bernt Christandl wrote:
> > > yesterday i upgrade my woody with 5 new qt-packages and realized
> > > that kdm then displayed (fixed width?) the possible users in a
> > > strange way:
> > 
> yeah, i already heard about this problem.
> 
> > That may be due to qt-3.1.2 fixes. Ossi, any problems known like fixed
> > width in the listview  ?
> > 
> dunno. i'll check shortly after the build finishes.
> 
here we go ...
patch attached and commited to the 3.1 branch.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
Index: kgreeter.h
===
RCS file: /home/kde/kdebase/kdm/kfrontend/kgreeter.h,v
retrieving revision 1.23
diff -u -r1.23 kgreeter.h
--- kgreeter.h  22 Oct 2002 03:46:21 -  1.23
+++ kgreeter.h  13 Mar 2003 18:51:20 -
@@ -81,6 +81,8 @@
 };
 
 
+class UserListView;
+
 class KGreeter : public FDialog {
 Q_OBJECT
 typedef FDialog inherited;
@@ -111,8 +113,8 @@
 
 private:
 void set_wm( const char * );
-void insertUsers( KListView * );
-void insertUser( KListView *, const QImage &, const QString &, struct 
passwd * );
+void insertUsers( UserListView * );
+void insertUser( UserListView *, const QImage &, const QString &, struct 
passwd * );
 void MsgBox( QMessageBox::Icon typ, QString msg ) { KFMsgBox::box( this, 
typ, msg ); }
 void Inserten( QPopupMenu *mnu, const QString& txt, const char *member );
 bool verifyUser( bool );
@@ -122,7 +124,7 @@
 WmStat wmstat;
 QStringenam;
 KSimpleConfig  *stsfile;
-KListView  *user_view;
+UserListView   *user_view;
 KdmClock   *clock;
 QLabel *pixLabel;
 QLabel *loginLabel, *passwdLabel, *sessargLabel;
Index: kgreeter.cpp
===
RCS file: /home/kde/kdebase/kdm/kfrontend/kgreeter.cpp,v
retrieving revision 1.83.2.1
diff -u -r1.83.2.1 kgreeter.cpp
--- kgreeter.cpp28 Dec 2002 02:01:34 -  1.83.2.1
+++ kgreeter.cpp13 Mar 2003 18:51:20 -
@@ -36,6 +36,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -69,13 +70,6 @@
 #include 
 
 
-class GreeterListViewItem : public KListViewItem {
-public:
-GreeterListViewItem( KListView* parent, const QString& text )
-   : KListViewItem( parent, text ) {};
-QString login;
-};
-
 void
 KLoginLineEdit::focusOutEvent( QFocusEvent *e )
 {
@@ -84,6 +78,41 @@
 }
 
 
+class UserListView : public KListView {
+public:
+UserListView( QWidget* parent = 0, const char *name = 0 )
+   : KListView( parent, name )
+   , cachedSizeHint( -1, 0 )
+{
+   setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
+   header()->hide();
+   addColumn( QString::null );
+   setColumnAlignment( 0, AlignVCenter );
+   setResizeMode( QListView::LastColumn );
+}
+
+mutable QSize cachedSizeHint;
+
+protected:
+virtual QSize sizeHint() const
+{
+   if (!cachedSizeHint.isValid()) {
+   constPolish();
+   uint maxw = 0;
+   for (QListViewItem *itm = firstChild(); itm; itm = 
itm->nextSibling()) {
+   uint thisw = itm->width( fontMetrics(), this, 0 );
+   if (thisw > maxw)
+   maxw = thisw;
+   }
+   cachedSizeHint.setWidth(
+   style().pixelMetric( QStyle::PM_ScrollBarExtent ) +
+   frameWidth() * 2 + maxw );
+   }
+   return cachedSizeHint;
+}
+};
+
+
 KGreeter::KGreeter()
   : inherited( 0, 0, true )
   , user_view( 0 )
@@ -105,11 +134,7 @@
main_grid->addWidget( welcomeLabel, 0, 1 );
 }
 if (kdmcfg->_showUsers != SHOW_NONE) {
-   user_view = new KListView( winFrame );
-   user_view->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, 
QSizePolicy::Ignored ) );
-   user_view->addColumn(QString::null);
-   user_view->setResizeMode(QListView::LastColumn);
-   user_view->header()->hide();
+   user_view = new UserListView( winFrame );
insertUsers( user_view );
main_grid->addMultiCellWidget(user_view, 0, 3, 0, 0);
connect( user_view, SIGNAL(clicked( QListViewItem * )),
@@ -275,8 +300,24 @@
 delete stsfile;
 }
 
+class UserListViewItem : public KListViewItem {
+public:
+UserListViewItem( UserListView *parent, const QString &text,
+const QPixmap &pixmap, const QString &username )
+   : KListViewItem( parent )
+   , login( username )
+{
+   setPixmap(

Re: kdm and qt-3.1.2

2003-03-11 Thread Oswald Buddenhagen
On Tue, Mar 11, 2003 at 10:43:24AM +0100, Ralf Nolden wrote:
> On Dienstag, 11. März 2003 07:57, Bernt Christandl wrote:
> > yesterday i upgrade my woody with 5 new qt-packages and realized
> > that kdm then displayed (fixed width?) the possible users in a
> > strange way:
> 
yeah, i already heard about this problem.

> That may be due to qt-3.1.2 fixes. Ossi, any problems known like fixed
> width in the listview  ?
> 
dunno. i'll check shortly after the build finishes.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdm and use of /etc/profile

2003-02-27 Thread Oswald Buddenhagen
On Thu, Feb 27, 2003 at 02:03:57PM -0800, Craig Dickson wrote:
> #!/bin/sh
> myshell=`grep "^$USER:" /etc/passwd | cut -d : -f 7`
> exec $myshell -l -c /etc/X11/Xsession
> 
how about "exec $SHELL"? ;-)

we already attempted such things. search the kde(-core)-devel archives
for this discussion. must have been 1-1.5 years ago, i guess.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdm and use of /etc/profile

2003-02-27 Thread Oswald Buddenhagen
On Thu, Feb 27, 2003 at 09:43:32PM +0100, Henning Moll wrote:
> Hi!
> 
> It has been discussed a few days before how to setup kdm to use a login shell:
> 
> in /etc/kde3/kdm/Xsession change the first line from:
> #!/bin/sh 
> to
> #!/bin/bash --login
> 
> ok.
> 
not ok. binding it to bash is evil.

it's a matter of policy ...
anything that is done to kdm should be probably in sync with xdm.

i attatched kdm's default Xsession for reference.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
#! /bin/sh
# Xsession - run as user

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" 
"/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done

DM_PATH=$PATH
test -f /etc/profile && . /etc/profile
test -f $HOME/.profile && . $HOME/.profile
IFS_SAVE=$IFS
IFS=:
for i in $PATH; do
case :$DM_PATH: in
  *:$i:*) ;;
  ::) DM_PATH=$i;;
  *) DM_PATH=$DM_PATH:$i;;
esac
done
IFS=$IFS_SAVE
PATH=$DM_PATH
export PATH

test -f /etc/xprofile && . /etc/xprofile
test -f $HOME/.xprofile && . $HOME/.xprofile

sess=$1
shift

case $sess in
failsafe)
exec xterm -geometry 80x24-0-0 $*
;;
""|default)
if test -x $HOME/.xsession; then
exec $HOME/.xsession $*
else
sess=kde
fi
;;
esac

# start windowmanager
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*
sess=`echo "$sess" | tr A-Z a-z`
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*

# windowmanager not found, tell user
exec xmessage -center -buttons OK:0 -default OK "Sorry, $sess not found."


Re: Shutting down a console locally...

2003-02-27 Thread Oswald Buddenhagen
On Thu, Feb 27, 2003 at 06:35:07PM +, John Sullivan wrote:
> The best we can come up with at the moment is a ctrl-bspace to drop to 
> console 
> login, login as root and issue a halt, but suerely there's a better way than 
> this?
> 
the usual X terminal protocols don't support this ...
i already thought about adding such functionality to kdm, but that's
todo.
for now you can create a password-less command login (name it 'halt' and
set the login shell to /sbin/halt) or use my clever script at
http://ktown.kde.org/~ossi/sw/halten.html (the "another version" link is
relevant for you).

> Hmmm - sorry for such a long post!
> 
you call _that_ long? hmm ... ;)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kde application and it's PATH

2003-02-20 Thread Oswald Buddenhagen
On Thu, Feb 20, 2003 at 05:12:26PM +0100, Vladimir Wiedermann wrote:
> > > Hi all,
> > > 
> > > I have this problem, I would like to set up different path, than standard
> > > and I want all applications and users to have this path in it's
> > > enviroment. I made changes in /etc/profile /etc/ligin.defs
> > > /etc/bash.bashrc but path in Kile is still the same (doesn't contains my
> > > addons). Can anybody help me please?
> > > 
> > > thanks,
> > 
> > Logging in via kdm?
> > /etc/kde3/kdm/kdmrc
> 
> I don't know what to change in kdmrc,
>
[X-*-Core]
UserPath=... (regular users)
SystemPath=... (root and kdm's setup scripts)

> but I changed also /etc/kde3/kdm/Xsetup and Xstartup
> and I still don't have good path.
> 
of course not.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: delay on KDM startup and KDE startup (3.1)

2003-02-04 Thread Oswald Buddenhagen
On Mon, Feb 03, 2003 at 07:48:14AM -0800, Fedor Karpelevitch wrote:
> Any clues to what's the problem or how to fix it?
> 
possibly (probably, even) xft-related. try disabling it.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: New packages & changes

2003-01-22 Thread Oswald Buddenhagen
On Wed, Jan 22, 2003 at 07:43:47AM +0100, Ralf Nolden wrote:
> > > You could also use /etc/X11/X though,
> >
> > hmm, is this really the suggested way of invoking an x server?
> > this is a helper link of the debian config system, which i thought
> > is not supposed to be used directly. time to read the policy, i guess
> 
> s -l /etc/X11/X
> lrwxrwxrwx1 root root   20 Dec  7 21:44 /etc/X11/X -> 
> /usr/bin/X11/XFree86
> 
i know. i have the same. ;)
anyway, that does not mean anything. afaik, /usr/bin/X11/X is the
offcial "entry point". this wrapper program then uses (or does not use)
the symlink depending on the way it was configured with debconf.

> don't you think we could add those lines per default into the 
> debian Xservers file for KDM and comment them out with hashes ?
> 
feel free to do so. i didn't make the feature official yet, as it is not
really ready (joe user does not like alt-ctrl-Fx ...).

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: New packages & changes

2003-01-21 Thread Oswald Buddenhagen
On Wed, Jan 22, 2003 at 12:33:28AM +0100, Ralf Nolden wrote:
> BTW: if you want to use an XP-like multi-session feature for X, change 
> 
> /etc/kde3/kdm/Xservers
> 
> add lines like these:
> # Examples for multiple local X displays:
> # :0 local /usr/X11R6/bin/X :0 vt9 -bpp 16
> # :1 local /usr/X11R6/bin/X :1 vt10 -bpp 8
> :0 [EMAIL PROTECTED] /etc/X11/X :0 vt7
> :1 local reserve /usr/bin/X11/X :1 vt8

> :2 local reserve /usr/bin/X11/X :1 vt9
> :3 local reserve /usr/bin/X11/X :1 vt10
> 
   ^
it would be advisable to use 2 and 3, though. ;)

> the reserve is the point :-)

> You could also use /etc/X11/X though,
> 
hmm, is this really the suggested way of invoking an x server?
this is a helper link of the debian config system, which i thought
is not supposed to be used directly. time to read the policy, i guess
...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Kill kdesktop_lock (maybe a bug in the last KDE 3.1 packages)

2003-01-20 Thread Oswald Buddenhagen
On Mon, Jan 20, 2003 at 12:24:02PM +0100, Jaime Robles wrote:
> If i lock the desktop and then i enter a wrong password,
>
that should only happen if kcheckpass fails (possibly because it is not
suid root). a wrong password is not a failure.

> i can see a message like (it is in Spanish) "Kill kdesktop_lock" and i
> cannot try again to enter my password...
>
you should be able to retry after 10 seconds.

> do the solution is to "alt-ctl-F1" to a text-shell and kill 
> the kdesktop_lock process...
> 
exactly.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Looking for quiet Harddisk

2003-01-18 Thread Oswald Buddenhagen
On Sat, Jan 18, 2003 at 05:23:14PM +0100, Claas Langbehn wrote:
> The "Seagate Barracuda V" shall be amazingly quiet.
> 
i only can speak about barracuda IV. they are. even after half a year it
was hardly audible. then it went up in smoke - doesn't seem to happen
too often, though.
one thing to note about seagate's construction is, that it emits heat to
the upside, so it is good for installing a fan in a slot above it. for
stacking multiple disks in a cooling rack it is very bad. that was at
least my impression compared with maxtor drives.

btw, now i have a maxtor diamondmax plus 9 (also fluid bearing). the
spinning sound is a relatively loud rush, but it is unaudible in
a _good_ casing. the seeking is very loud, though - i can't use it
without aam enabled.

hmm, somehow this thread is OT ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Report on Ralf's Woody Debs

2003-01-13 Thread Oswald Buddenhagen
On Mon, Jan 13, 2003 at 11:11:42PM +0100, Ralf Nolden wrote:
> > 5. Does anyone know if it is possible to revert to the old 3.0
> > layout for KDM? The new way KDM is arranged looks pretty bad, at
> > least to me.
> Change the code, recompile. The listview on the left is the default
> now which is better than the former iconview when you have many users.
> 
the problem is, that nobody created an image with an appropriate size
for the new layout ... :}
if you turn off the user list, you'll get the old layout more or less.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: GCC 3.2 now becoming default compiler for Sid!!!

2003-01-09 Thread Oswald Buddenhagen
On Fri, Jan 10, 2003 at 06:14:47AM +0800, [EMAIL PROTECTED] wrote:
> On Wed, 8 Jan 2003 19:01:50 -0700,
> Ivan E. Moore II <[EMAIL PROTECTED]> wrote:
> > 
> > On Thu, Jan 09, 2003 at 02:39:30AM +0100, Mario J. Barch?in Molina wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > > 
> > > El Wednesday 08 January 2003 23:43, Daniel Stone escribi?:
> > > 
> > > > * Qt3 to be uploaded, built with g++3.2.
> > > 
> > > I am building my own QT3 debs with g++3.2. Should I stop compiling and
> > > wait a few hours/days?
> > 
> > yes...otherwise they will break when the new X packages are available.
> 
> [...]
> 
> That's strange. I *have* KDE built with the following inserted
> into the debian/rules of all KDE packages that seem to want it:
> 
> # GCC 3.2 defines
> export CC  = gcc-3.2
> export CXX = g++-3.2
> export CPP = cpp-3.2
> 
> XFree86 was compiled (a month ago) without any fussing about
> which compiler, etc., I used (e.g. a sraight "debuild -b -uc
> -us").
> 
that's correct. gcc 3.2 is binary compatible to gcc 2.95. only g++ is
not. as the xfree libs are all plain c ... :-)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kmail no longer setting message-ID?

2002-12-27 Thread Oswald Buddenhagen
On Fri, Dec 27, 2002 at 08:10:27PM +0100, Hendrik Sattler wrote:
> No, its an optional setting with default to "off"
>
where did you find it? i'm unable to do so with current HEAD.

> because the kmail programmers realized (back in KDE2.2.2) that not the
> MUA is responsible for the Message-ID but the first MTA.
>
nonsense. this would cancel any sensible threading of your own messages.
heuristic methods as somebody else suggested are time-consuming and
error-prone. therefore all useful muas generate msgids themselves.  true
is that the mta should set an msgid if it is missing - but it should not
be missing in the first place.

> Why? Because all dial-up computers create non-unique Message-ID
> because it cannot be assured that the servername part of the
> Message-ID is unique (mostly, a local dummy name is chosen).
>
that's a pretty weak argument. the probability of a clash is simply
ridiculous.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Mystery of the vanishing session

2002-12-22 Thread Oswald Buddenhagen
On Sun, Dec 15, 2002 at 01:45:29PM -0800, Ross Boylan wrote:
> DISAPPEARING SESSIONS
> 
no idea.

> RELUCTANT SHUTDOWN
> 
> Anybody know what's up with that?
> 
yes. for some weird reasons the x-server on vt8 does not finish its
startup if it is not in the foreground. consequently it does not
shutdown, too. as kdm/xdm waits for it, it will wait forever ...
hint: make :1 a reserve display, so the xserver won't linger when
it is not needed. see
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kdm/README?rev=2.17&content-type=text/x-cvsweb-markup
 
for details (it will work with kde 3.0, too).

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Build times?

2002-11-30 Thread Oswald Buddenhagen
On Sat, Nov 30, 2002 at 01:42:48PM +0100, Alex wrote:
> I think that with a little Makefile juggling it should be possible to
> half the time taken. IMHO the difference between static/shared is only
> in the final linking stage.
>
wrong. the dynamic build is done with -fPIC, the static without. on some
arches this might not matter, but on x86 it does.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Build times?

2002-11-30 Thread Oswald Buddenhagen
On Sat, Nov 30, 2002 at 05:06:25AM +0100, Bjoern Krombholz wrote:
> On Fri, Nov 29, 2002 at 10:53:42PM +0100, Oswald Buddenhagen wrote:
> > On Fri, Nov 29, 2002 at 05:12:49PM +0100, Bjoern Krombholz wrote:
> 
> > i'm not impressed ... the debian build does everything four times, so
> > you're not even 2.5 times as fast. :-P
> 
> Hmm? I'm not shure i got it right - 4 times? Why?
> 
(static, dynamic) x (nothread, thread)
i didn't study the rules file in detail, but i think it needs to rebuild
the complete lib every time. ok, the factor 4 is seriously skewed by
executables (qmake, moc, designer, ...) being built only once - so
maybe it's only 3. 3.3 times as fast does not impress me, either. :)

> > > Compiling C++ stuff takes much longer than plain C because of the
> > > preprocessing
> > cpp does not not need much time,
> 
> Never said anything else. ;)
> 
of course. :)

> > a) g++ is slower than gcc
> 
> Aren't those both the same, more or less?
> (`g++' equals `gcc -lstdc++ -lm')
> 
look behind the curtain. ;)
hint: /usr/lib/gcc-lib/

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Build times?

2002-11-29 Thread Oswald Buddenhagen
On Fri, Nov 29, 2002 at 05:12:49PM +0100, Bjoern Krombholz wrote:
> > real487m1.732s
> > user401m35.620s
> > sys 12m42.350s
> > 
> > (450 MHz Celeron 2, 640MB RAM, Kernel 2.4.19, gcc 2.9.5)
> 
> # ./configure -qt-gif -cups -debug
> 
> [...]
> 
> # time make
> 
> [...]
> 
> real50m27.796s
> user47m5.190s
> sys 1m24.060s
> 
> (AthlonXP 1600+, 512MB DDR, 2.4.19, gcc 2.95)
> 
i'm not impressed ... the debian build does everything four times, so
you're not even 2.5 times as fast. :-P

> Compiling C++ stuff takes much longer than plain C because of the
> preprocessing
>
cpp does not not need much time, but generates _huge_ amounts of code.
actually _compiling_ this code takes long, as a) g++ is slower than gcc
and b) it's such a lot of (included) code.

> and even longer on QT based code where another preprocessing stage
> (moc) is needed.
> 
moc takes almost no time. compiling the generated mocs does (they are
tiny, but are compiled separately and therefore need to compile all
these included headers again). kde includes the mocs into the "real" c++
files, so they don't contribute much to compilation time.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: Changing KDM color.

2002-11-01 Thread Oswald Buddenhagen
On Fri, Nov 01, 2002 at 12:33:52AM +0100, Josep Febrer wrote:
> A Dijous 31 Octubre 2002 22:12, Sean Fraley va escriure:
> > How do I change the color of KDM?  The default gray is ugly and I really
> > would like to be able to change it, but I can't seem to find where.
> 
> You need to change the colors of the root user.
> 
that does not work since kde 2.2(?) - it was a bug that it worked that
way. kde 3.1 offers an explicit color scheme selection for kdm.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




Re: kdms default path 'wrong' (WAS: KDE 3 packaging - bug thread)

2002-06-11 Thread Oswald Buddenhagen
On Tue, Jun 11, 2002 at 12:13:49PM -0500, Chris Cheney wrote:
> would a /usr/bin/startkde consisting of
> 
> exec /usr/bin/kde3
> 
> do what we need?
> 
no, it would not.
and don't make startkde source any shell startup scripts, as this just
does not belong there. see the discussions on [EMAIL PROTECTED]

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: kdms default path 'wrong' (WAS: KDE 3 packaging - bug thread)

2002-06-11 Thread Oswald Buddenhagen
On Tue, Jun 11, 2002 at 05:00:16PM +0400, Nikita V. Youshchenko wrote:
> > i created /etc/X11/Xsession.d/98ossi_envsetup containing
> > 
> > . /etc/profile
> > test $HOME/.profile && . $HOME/.profile
> 
> This is not correct because login script should not be sourced when X is 
> started from text mode using startx.
>
oops ... right ...

> I believe the correct solution is something like
> #!/bin/bash --login
> on the top of /etc/X11/xdm/Xsession (and Xsessions of other dm's).
>
this suffers from the same security (well, policy enforcement) problem as 
my version.

> But it is wrong if user's shell is not bash.
> 
so why not source the files explicitly?
this also has another downside: bash will prefer .bash_profile over
.profile. but my .bash_profile contains
. ~/.profile
. ~/.bashrc
this is a neat trick to ensure that the interactive setup is loaded by
all interactive shells - and only by them.

> By the way, if login script is used only to set some environment vars
> and these vars are system-wide, /etc/environment may be used. It is
> loaded by pam_env.
> 
correct. i already filed a wish against pam to use ~/.environment as
well, but it does not look like it will be done anytime soon.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: kdms default path 'wrong' (WAS: KDE 3 packaging - bug thread)

2002-06-11 Thread Oswald Buddenhagen
On Tue, Jun 11, 2002 at 10:00:47AM +0200, Achim Bohnet wrote:
> As long as there's no general debian wide solution to  'login scripts
> not sourced'.
>
i created /etc/X11/Xsession.d/98ossi_envsetup containing

. /etc/profile
test $HOME/.profile && . $HOME/.profile

the problem is, that this can be used to undermine the options from
Xsession.options. i'm not sure if a simple solution exists at all.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Starting a cvs-compiled KDE from KDM

2002-06-04 Thread Oswald Buddenhagen
On Wed, Jun 05, 2002 at 12:54:09AM +0200, Reinhold Kainhofer wrote:
> ...
> export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
> $KDEDIR/bin/startkde
> 
put an "exec" before the startkde invocation. this saves you some
memory.

> This way, my settings will survive almost everything (an upgrade of 
> xfree86-common or  kdm and a "make install" of kdelibs).
>
yep.

> At worst, I'll have to add kde_cvs to kdmrc again, but that's it.
> 
only if something goes horribly wrong - otherwise "make install" of
kdebase should preserve your kdm settings. provided of course, that 
you use the kdm you compiled yourself. if you use the debian package,
you must tell debconf not to touch your SessionTypes.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Global environment and KDM

2002-05-30 Thread Oswald Buddenhagen
> You're right.
>
sure he is. :)

> And I have the needed line "auth required pam_env.so" in
> /etc/pam.d/login.
>
who cares? this is login's pam config, not kdm's. ;)
kdm's one is /etc/pam.d/kde, unless you explicitly configured something
else. if you don't have such file (this would be the case, if you "make
install"ed as non-root), just copy the one from login.

> It used to work with KDE 2.2.2/woody,
>
i bet something was differently configured.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Double server reset with kdm

2002-05-16 Thread Oswald Buddenhagen
On Wed, May 15, 2002 at 02:51:26PM -0400, Mike Frisch wrote:
> Can anybody explain what's going on
>
possibly the server crashes after the reset.

> and how I might fix it?
> 
try TerminateServer=true in the [X-*-Core] section of kdmrc.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: multiple X sessions

2002-05-06 Thread Oswald Buddenhagen
On Mon, May 06, 2002 at 09:17:38PM +0200, Gabor Gludovatz wrote:
> Is there a way to manage multiple logins with kdm and X?
> 
http://lists.kde.org/?l=kde-devel&m=101113327206012&w=2

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: KDE3 lock screen, 'incorrect password' (my ****)

2002-05-03 Thread Oswald Buddenhagen
On Fri, May 03, 2002 at 10:06:37AM +0100, Giles Constant wrote:
> On Thu, 2 May 2002, Stephan Jaensch wrote:
> 
> > You didn't compile PAM support in.
> 
> ah...  that might be it :-) 
>
alternatively you could just make sure kcheckpass has read access to
/etc/shadow, that is, make it setuid root or setgid shadow.

> (although hitting the 'administrator mode' in kcontrol doesn't have
> the same problem).
> 
kdesu is just a wrapper around the system's su, so it has no permission
problem.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: KDE3 Logout

2002-05-02 Thread Oswald Buddenhagen
On Thu, May 02, 2002 at 09:36:52AM +0100, David Pashley wrote:
> You only get the menu when you started KDE from kdm. if you use any
> other method of starting kde, you only get the logout confirmation.
> 
this is correct for "plain" kde3.
mandrake had such a function already in older versions. but their
solution sucked. :)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Custom KDE/KDM for Internet access only

2002-04-26 Thread Oswald Buddenhagen
> So my questions are :
> - - how to desactivate customization of the menu bar ?
>
with some really weird permission trickery this might be possible. you'd
have to make the directory with the config files in question
(~/.kde/share/config/) owned by root and read-only to the user.

> - - how to desactivate login off ?
> 
you can't, so far.
you might be interested in the kde-kiosk project. join their mailing
list.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [KDE3] Optimizing

2002-04-09 Thread Oswald Buddenhagen
> I use --disable-fast-perl
>
what is this supposed to gain you (except slower makefile generation)?

> and --disable-rpath,
>
that's useful, if the executables and libs are supposed to be fully
relocatable in the file system.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




[OT] Re: Distributions Sucks-Rules-O-Meter

2002-04-07 Thread Oswald Buddenhagen
On Sun, Apr 07, 2002 at 10:55:36PM +0200, Gregor Zeitlinger wrote:
> look at that: http://zork.net/~nick/srom/ 
> 
have you checked out the toot link? i'm currently rotfl-ing ... :)))

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
The problem with making software idiot-proof is that idiots are so clever.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: kdm and xset?

2002-01-17 Thread Oswald Buddenhagen
> But I can't find where I'm suppose to put that command so it would get
> run anytime kdm is run,
>
/etc/kde/kdm/Xsetup

> or anytime when a wm is chosen.
>
you mean, when a session is started, right?
.../Xsession

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: KDM - Some minor buggies - All three are fixed!

2001-12-14 Thread Oswald Buddenhagen
> Previously (around the 2.2.2-2 packages), I was able to select
> different lilo settings to reboot to. But now, I can click the
> 'Reboot' radio button, and there's a dropdown listbox next to it, but
> it doesn't seem to contain anything. Clicking on the down arrow
> doesn't drop down the list. Any known fix for this?
> 
i suspect, that this was caused by a lilo update, not by a kde update.
i recently applied a patch which is supposed to fix some problem with
lilo output parsing - maybe, that's related. to give a definitive
statement i need the kdm.log of such a reboot attempt.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: KDM - Some minor buggies

2001-12-13 Thread Oswald Buddenhagen
>  :0 local /usr/X11R6/bin/X :0 vt7  -dpi 100 -nolisten tcp
> 
> Ivan (or is anyone in Debian listening?)   They also might be 
> aware of a reason for leaving the vt7 out! 
> 
it's in the default config file. you probably have a modified old
version, so you don't get the new one automatically.

> OK .. It looks like afterstep (session I tried) is found and  then it
> starts up /usr/bin/x-session-manager  which is symlinked to 
> /etc/alternatives/x-session-manager which is symlinked to kde2
> 
hmm. x-session-manger is only a symlink to a concrete manager. so if it
gets executed in the first place (instead of the selected session), it's 
already a problem.
at best, you send me the session log. the sh output is sometimes hard to
understand.

> Is there any way to put back either the CTRL-R (probably from xdm
> days) or the 'return to system console' which was in KDE 2.1 KDM and
> is not in KDE 2.2 KDM? 
>
yes ... once more you must edit Xservers:
:0 [EMAIL PROTECTED] [...]

> I do use the ALT-Fn keys but I don't think they are active during KDM
> Login.
> 
ALT-CTRL-Fn - as always, when a console-grabbing application is running
(that is, X-server, dosemu in native vga mode, etc.).

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: KDM - Some minor buggies

2001-12-12 Thread Oswald Buddenhagen
> > but entering the user name works?
> 
> No. I do get the user name into the name field by clicking on a 
> user-id icon. 
> 
ah. then it's probably the usual "vt7 is missing at the end of the
Xserver line" problem, which causes a race between the server and a
getty. the fact, that it works when started from command line supports
this.

> Yes they are installed and testing from a xterm prompt, they 
> (afterstep, pawm, fvwm, wmaker) all tell me nicely and correctly
> that another windowmanager (kde) is running. 
> 
strange. it's probably something with the Xsession script ... maybe,
add -x to the first line (#! /bin/sh -x) to get an execution log in
kdm.log / ~/.xsession-errors .

> Some additional info: 
> 1) I have modified /etc/kde2/kdm/Xsession to include 
>   xscreensaver-command -exit
>   xscreensaver -no-splash -silent &
> to enable xscreensaver when the KDM login screen is displayed. 
> The kdm frozen keyboard and chooser problem do NOT go away
> when I remove the xscreensaver commands from Xsession.
> 
Xsession is the wrong file ... you mean Xsetup, right?

> 2) When kdm failed on me (recently) I used startx and kdm started
>  - the kdm keyboard was NOT frozen. 
> 
you mean, both startx and kdm worked (independently from each other), right?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: KDM - Some minor buggies

2001-12-12 Thread Oswald Buddenhagen
> 1) When KDM is started upon boot, the keyboard is frozen for entry
> of password.
>
but entering the user name works?

> 2)  I am unable to invoke other window managers from the KDM window.
> Whenever I try to invoke afterstep or sawfish or fvwm KDE always
> starts. 
> 
but you have them installed, yes? :)
kde is probably the default session, so it is used as a fallback if the
other wm cannot be started. do the session names match the binary names?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm not run

2001-12-04 Thread Oswald Buddenhagen
> I get the following message from kdm:
> "kdm_greet: relocation error: kdm_greet: undefined symbol: XineramaIsActive".
> But on the other comuter kdm work!?!
> 
you're running kdm on a system which has xlibs without xinerama support,
but the kdm you installed was compiled on a system with xinerama.
basically a package mismatch.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdf crash and kdm weirdness

2001-12-01 Thread Oswald Buddenhagen
> Another issue can be experienced when you start the kdm control
> center module and become root, go to the "Users" tab and click on
> the icon button to open a user-defined icon. Whichever icon I select
> gets scaled down to 32x32 automagically, which is way to small (I
> think the default size is 64x64). 
> 
well, that's the expected behaviour. once i manage to implement kdm's
new look, this constraint will be even more required.
one idea to show full-size icons is the use of .face files in user's
home dirs. if a user with a face is selected, it is displayed in the
logo area (replacing the logo; the clock should move to some corner of
the desktop anyway); the logo area is planned to become 200x200 or
something like that.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: 2.2.1: logout problems

2001-12-01 Thread Oswald Buddenhagen
> I know that this problem has been posted here before, but the solution
> posted (uncheck "Automatically log in after X server crash") does not
> work for me.  I do have this option unchecked.
> 
> Any help will be greatly appreciated.
> 
please run "kdm -debug 15" and send me the daemon syslog.
btw, does 2.2.2 yield the same effect?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm chooser incorrectly reports Display not authorized

2001-11-17 Thread Oswald Buddenhagen
> * #any host can get a login window
> %hostlist   holler warp gascol
> *   CHOOSER %hostlist
> 
> 
> Apparently the former means "any host can get a chooser but not a
> login window", while the latter means "any host can get a chooser or a
> login window".
> 
not really. the first entry allows direct queries, whereas the chooser
entry is for indirect queries. as the choice of a host results in a
second indirect query (which is forwarded to the target host), the
indirect acl entry applies. but the chooser asks the "target hosts", if
they accept direct queries. i don't know if this is the expected behavior
or if i hosed something. need to have a look at the original code once
more ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm chooser incorrectly reports Display not authorized

2001-11-17 Thread Oswald Buddenhagen
> But for the entry for holler itself, the status is reported as
> "Display not authorized to connect".  Despite this, you can select it
> and connect no problem.  So the reported status is incorrect.
>
hmm ... i'll have a look at it.
btw, it works correctly with xdm and kdm from kde < 2.2, yes?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Setting environment

2001-10-28 Thread Oswald Buddenhagen
> >search the list archives ... (kdm, xsession, xprofile, environment,
> >...)
> >
> 
> With the greatest respect, this answer is a little unhelpful.  I HAVE
> been extensively searching archives both at Debian and using Google
> but can't find anything straight and to the point. 
> 
heck, you're right. the search engine at lists.debian.org is somehow
broken; i didn't find anything, although i knew quite well what to
search for. (bug the web admin with it. :))

> Could someone PLEASE set me straight on this, or at least advise me
> where I could GAINFULLY look for answers.
> 
http://lists.debian.org/debian-kde/2001/debian-kde-200110/msg00143.html

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Logout problem 2.2.1

2001-10-28 Thread Oswald Buddenhagen
> I have some problems with the logout function in kde 2.2.1. When I press 
> logout I starts to log me out but after a while the splash screen apears 
> again, and I'm logged in again?
>
that's kdm's auto-relogin feature. it should not fire after a clean
logout, but obviously it does. usually that happens, when the x-server
crashes at logout time - for me, recent xfree 4.1 packages seem to do so 
sometimes (i'm using xf's nv driver - that may be relevant).

> Anybody that knows how to resolv this problem?
> 
to work around the problem, you can disable the auto-relogin (in the
login manager setup, tab convenience).

> I have this problem on 3 machines.
> 
whoops ... that's sorta strange ... are they mostly identical?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Setting environment

2001-10-28 Thread Oswald Buddenhagen
> This may well be a FA dumb Q
> 
not necessarily dumb, but for sure a faq. ;)

> What part of TFM haven't I Rd?
> 
search the list archives ... (kdm, xsession, xprofile, environment, ...)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm dies

2001-10-21 Thread Oswald Buddenhagen
>   I understand what startx is. [...]
>
hehe, heck, i stopmed into the ambiguity trap. or my understanding of
the english language is just that bad. :)

> Under xfree 3.?, I believe that the server was specified in
> XF86Config. 
>
nope ... XF86Config is the server's config file, not the file which says
which server to run - and always was.

> I'm not sure where it's specified under xfree 4.1. An admittedly
> somewhat cursory look through the xfree documentation hasn't shown me
> the answer.  
> 
there is nothing like that in x. most linux-distros provide some
x-wrapper for convenience. otherwise you have only the program-specific
binary specifications (xserverrc, Xservers, etc.).

> Argh!  First place I looked was /etc/X11/Xserver. [...] I assume that
> file is a remnant of an earlier version of kdm?
> 
not of kdm. it's a remnant of the old xwrapper (provided with older xf3 
packages).

> In the process of repairing that by forcing a reinstall, I also
> switched from using the 3.?  server to the 4.1 server but the Xservers
> file didn't get updated. 
> 
well, thats beyond the scope of any automatic update because a) the
different server versions are compatible at the x11 protocol level and
therefore the x-clients don't care for the server-version and b) this
would be somewhat complex to implement.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm dies

2001-10-21 Thread Oswald Buddenhagen
> Which configuration file would cause kdm to use a different server
> than startx?
>
startx is not a server. it's a wrapper to xinit, which starts the server
specified in /etc/X11/xinit/xserverrc. but that has _nothing_ to do with
kdm.
kdm's x-server config file is /etc/kde2/kdm/Xservers. possibly it's
starting the X wrapper; in this case you would have to change the
/etc/X11/X symlink (or just run "dpkg-reconfigure xserver-common").

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm dies

2001-10-21 Thread Oswald Buddenhagen
> Oct 16 19:45:59 corwin kdm[2505]: GenerateAuthorization XDM-AUTHORIZATION-1
> 
shit ... one more of this sort.
pls have a look at kdm.log. does it say something about missing symbols?
also, try changing kdmrc [X-*-Core] AuthNames to "MIT-MAGIC-COOKIE-1".

> As you can see, the first log entry was at 19:44:18 and the
> last one at 19:45:59, so it takes roughly a minute and a
> half before dropping to the command line.  (This delay
> disappears if I remove the debugging flag.) 
>
rtfm ... /usr/share/doc/kdm/README.gz

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Environment variables for KDE-Sessions

2001-10-11 Thread Oswald Buddenhagen
> but i doubt this hasn't been adopted for debian (yet). 
>
heck, this happens when you change the sentence entirely but forget the
final proofreading. :(
it must read "but this hasn't been adopted for debian (yet).", of course.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Environment variables for KDE-Sessions

2001-10-11 Thread Oswald Buddenhagen
> I am running testing (KDE 2.1.1) and I am wondering how a user may set
> environment variables (like $PRINTER) for KDE. CDE allows to set in
> ~/.dtprofile
> 
i (the kdm upstream maintainer) enhanced kdm's default Xsession file by
making it source ~/.xprofile ... but i doubt this hasn't been adopted 
for debian (yet). anyway, you could create a
/etc/X11/Xsession.d/95mine_xprofile
with a content of
test ~/.xprofile && . ~/.xprofile

alternatively you can select the default session in kdm/xdm/?dm and
make your ~/.xsession do whatever you want.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: KDM and ip aliasing

2001-09-20 Thread Oswald Buddenhagen
> I tried setting DisplayManager.sourceAddress but this does not seem
> to change anything.
> 
which version of kde/kdm are you using? if it's >= 2.2alpha2, the
setting is in kdmrc, section [Xdmcp], key SourceAddress=true/false.

otherwise i can only ask, if it works with plain xdm - if not, then
i obviously have something more to code ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: access to local Xserver?

2001-09-15 Thread Oswald Buddenhagen
> I do have a problem though... when I 'su' as a regular user
> i do not have access to the local Xserver to run X-programs.
> This worked before i upgraded to KDE2.2. I'm sure it is just
> a setting somewhere, but i really do not know where to look...
> 
it may be related to the Authorize setting in the [X-:*-Core]
section of kdmrc - set it to false, if you want no X security.
since i don't like the above solution, i have this script in my
root's .profile:

ppid=`ps ho ppid $$`
whose=`COLUMNS=1 ps heo user,ucmd $ppid`
if test -n "$whose" -a "${whose%% *}" != root; then
  eval $(echo "$whose"|sed -ne 's/.*\.*/export 
DISPLAY=\1/p; t end; d; :end q')
  test "$DISPLAY" && xauth merge $(echo "$whose"|sed -ne 's/.*\.*/\1\/\.Xauthority/p; t end; d; :end q')
fi
unset ppid whose

> Additionally, i would like to run software on a server at our
> university and view to output on my screen... this, ofcourse,
> does not work as well...
> 
as long, as these systems are in one nis-/nfs-domain, there should be no
problem. for random hosts, you need something like that:

delphi$ xauth nextract - delphi:0.0 | rsh is2101 /usr/X11R5/bin/xauth nmerge -
delphi$ rsh is2101
is2101$ xterm -display delphi:0.0

you could automate this by extending your xon script.

btw, the simplest solution for transporting xauth data is to use ssh with
X forwarding enabled ...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Complete KDE-Logout with dcop

2001-07-28 Thread Oswald Buddenhagen
> Using the command "dcop kdesktop default logout" does the trick, but
> only if I disabled the "logout confirm" stuff globally. Is there a
> possibility to override this setting?
> 
nope. :(
i'm planning a clean solution for post-2.2 ...

greetings 

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm wont start cause of this:

2001-07-26 Thread Oswald Buddenhagen
> Can we do something about this?
> 
depends on the scope of "we". :)
ivan could make versioned dependencies, so kdm refuses to install when
you have the bad libs. but that sucks, as it would prevent you from
using latest x.
the other possibility is fixing the x packages, so that they are
compiled with xdmauth support. you may want to ask on debian-x@ (iirc)
about this.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Starting gnome with kdm?

2001-07-26 Thread Oswald Buddenhagen
> > > However, when I use kdm I only have the option to start kde or twm or
> > > sawfish. How can I tell kdm to offer me gnome as an option?
> > >
> > that is the SessionTypes option in kdmrc.
> 
> I naively added gnome to that line but it still starts kde. What am I
> doing wrong?
> 
the gnome start script is called gnome-session.

> Aren't the kde 2.1.x series packages the most recent packages (I
> downloaded them on tuesday)?
> 
depends on the tree you're using ... the really most recent packages
are post-2.2beta1 packages created from cvs sources.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm trouble

2001-07-26 Thread Oswald Buddenhagen
> > > I entered kdm in the search field in the help center and hit search
> > > but got no reply.
> > >
> > that's because it's not indexed ... missing desktop file.
> 
> What does that mean? How do I index(?) it?
> 
you don't index it at all. it's an upstream failing, which is planned
to be fixed in 2.2.
you could of course fix it yourself, but i'm not eager to give you
instructions now (because i had to find out how to do it myself).

> > > how can I add xserver-options (font size, gamma correction, etc.) in
> > > the kdm configuration
> > >
> > /etc/X11/kdm/Xservers
> 
> That doesn't seem to be read (I specified -dpi 100 but the fonts are
> still 75 dpi). How should I proceed?
> 
well ... are you really using 2.1.x? 2.2 has a "somewhat" changed
config structure ... there it would be /etc/kde2/kdm/Xservers.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm wont start cause of this:

2001-07-26 Thread Oswald Buddenhagen
> Sid:
> Kde2.2beta1 -> /var/log/kdm.log:
> /usr/bin/kdm: error while loading shared
> libraries: /usr/bin/kdm: undefined symbol: _XdmcpWrapperToOddParity
> 
this is a mismatch between the x packages that kdm was compiled
against and the ones that are installed. the new xfree packages
seem to have no XDMAUTH support.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Starting gnome with kdm?

2001-07-26 Thread Oswald Buddenhagen
> However, when I use kdm I only have the option to start kde or twm or
> sawfish. How can I tell kdm to offer me gnome as an option?
> 
that is the SessionTypes option in kdmrc.
recent debian packages automatically add all available window managers
and desktop environments, but i don't know if this magic applies to
the 2.1.x series packages as well.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm trouble

2001-07-26 Thread Oswald Buddenhagen
> where can I find the documentation for kdm?
>
there is none. :)
no, in fact, there is a doc, but it is not very useful.
the second important source of info is the xdm man page (which is/was
installed as the kdm man page).

> I entered kdm in the search field in the help center and hit search
> but got no reply.
>
that's because it's not indexed ... missing desktop file.

> how can I add xserver-options (font size, gamma correction, etc.) in
> the kdm configuration
> 
/etc/X11/kdm/Xservers

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: [kwin] annoying crash

2001-07-22 Thread Oswald Buddenhagen
> kwin crashes while certain GUI functions are being accessed, may
> have something to do with hovering the mouse over titlebar under
> certain conditions.
> 
such a bug was fixed yesterday or so. try current cvs. 

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: keyboard freeze after reboot

2001-07-14 Thread Oswald Buddenhagen
> I think the problem might be X-related.
> 
it is. we had this thread already about 20 times (not necessarily
on this list) ...
add "vt7" at the end of the server line in the Xservers file kdm uses.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm crashes X after 5 restarts

2001-07-04 Thread Oswald Buddenhagen
moin,

> After trying kdm I recognized following behaviour : After 5 logouts
> (or 5 restart) with kdm, the X server stops, but the kdm daemon is
> still running.
> 
> syslog says :
> 
> kdm [1234] : Display :0 is being disabled (restarting too fast)
> 
this is not a bug, but a feature. if you restart the display 5 times
in a row with less than two minutes between consecutive restarts, kdm
assumes that something is wrong and stops the display. you may adjust
the StartInterval and StartAttempts settings.
hmmm ... the used formula is a bit weird indeed. i'm thinking about
something with fewer side effects (concrete ideas are welcome).
btw, the daemon is not dead after it stops the display. you may wake up
all dead displays by sending a HUP to the daemon.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm: missing nousers: alias, qmail* (and MaxShowUID)

2001-07-03 Thread Oswald Buddenhagen
> In case you are at the LinuxTag on Thursday/Friday
>
too bad ... i won't attend. :(

> I'll take the oppertunity and spend you a real bear!
> 
oh yes, a grizzly, please. or, even better, a giraffe. *lol*
no, seriously, beer and other brew stinks to me.

spend me an orange juice at some future event. :)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm: missing nousers: alias, qmail* (and MaxShowUID)

2001-07-03 Thread Oswald Buddenhagen
> > yes, sounds good. will do at once. i'm only a bit concerned about the
> > kcontrol frontend, as we're in a message freeze.
> 
> undocumented feature? :)
> 
yes, obviously the best solution for now. not even undocumented, but
one of the many other options without a frontend. :)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Logout and lock a KDE2-session

2001-07-03 Thread Oswald Buddenhagen
> So I searched on my system and in books for the command that logs out a
> user's session.
>
dcop kdesktop default logout

> The second is: I want to remove the lock - item from the front panel
> menu of KDE. User's shouldn't be permitted to lock out while having
> a break, they only should logout from their session.
> 
impossible. after 2.2 is released, it will be made optional, but you
can't prevent the users from enabling it themselves or using a
completely other screen locker. but this is no problem, if you leave
alt-ctrl-backspace enabled - the screen saver will be killed together
with the rest of the session.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm: missing nousers: alias, qmail* (and MaxShowUID)

2001-07-03 Thread Oswald Buddenhagen
On Mon, Jul 02, 2001 at 11:07:24PM -0600, Ivan E. Moore II wrote:
> On Mon, Jul 02, 2001 at 11:48:28PM +0200, Oswald Buddenhagen wrote:
> > > Oswald, how about a MaxShowUID (default 2)? 
> > >
> > for debian, it would be 1000.
> 
> just checked and it doesn't seem to exist.
> 
ah, yes. i misread. it was a bit late ... *shame*

> so if we could say ignore below MinShowUID and above MaxShowUID that
> would be cool. Then I could say 
> 
>   MinShowUID=1000
>   MaxShowUID=2
> 
yes, sounds good. will do at once. i'm only a bit concerned about the
kcontrol frontend, as we're in a message freeze.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm: missing nousers: alias, qmail* (and MaxShowUID)

2001-07-02 Thread Oswald Buddenhagen
> Oswald, how about a MaxShowUID (default 2)? 
>
for debian, it would be 1000.

> Fits nice with Debians policy (
> http://www.de.debian.org/doc/debian-policy/ch-opersys.html#s10.2 )
> and saves Ivan some time adding 'missing' NoUsers entries ;)
> 
indeed. the problem is, that this limit is distribution-specific, so i
cannot enable it by default without risking dumb bug reports. however,
it's probably a good idea if ivan sets this for debian.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: kdm won't start

2001-07-01 Thread Oswald Buddenhagen
> There has been a fairly major restructuring of kdm, and it does not rely on 
> files in /usr/X11/kdm anymore. 
> 
nope, according to the log he's using an older version.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Create new users in a special way

2001-06-29 Thread Oswald Buddenhagen
> Hello!
> 
tach auch! :)

> Now I want to create /home/directories in the way the programm "adduser"
> create /home/directories /copying files from /etc/skel and copy them in
> user's home directory, and so on.
> 
for user in `cut -f1 -d: 

Re: Konfiguration des grafischen Einloggens unter selbstdef. Session!

2001-06-19 Thread Oswald Buddenhagen
this is an english-speaking list. ;-)

> Nun zu meiner Frage: Beim grafischen Einloggen, wäre es sehr praktisch
> eine Session z. B. "1. Anfangssession"  vom Benutzer aufrufen zu können,
> die die Anfangseinstellungen (von mir für alle Benutzer gleichartig
> entworfen und eingerichtet) enthält.
> 
hack the /etc/X11/Xsession of every machine.

case $1 in
kde) test -d ~/.kde || cp -r /some/path/default-kde-config ~/.kde;;
gnome) ;;
esac

this would setup defaults for every session type when the user starts
it the first time. no need for a separate "initialization session".

hth

gruß aus dräschdn :)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: password in kdm

2001-06-16 Thread Oswald Buddenhagen
> How can I have password whit charcater like  @ in kdm ?
> 
for the brave: i commited a fix for this problem to cvs a few days
ago. this should close at least 5 reports.
if you're lame, you must wait until 2.2beta1 is out and packaged. :)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: OT (a bit :) KDE cvs: klauncher crash on Debian testing

2001-06-12 Thread Oswald Buddenhagen
> in case someone build KDE from cvs sources:  Does klauncher still
> work for you?  Here on Debian testing klauncher crashes since the my
> Sunday midnight build.  When I login I get a klauncher crash handler
> window.
> 
i must confirm this ... i'm currently on the console ... :-(

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




Re: Path for Quickstart (ALT+F2)

2001-05-13 Thread Oswald Buddenhagen
> I can't run selfcompiled programs stored in /usr/local/... from the 
> quickstart box (ALT+F2), however from a konsole, it works fine.
> 
> Do they use different path environment variables? Or what is my problem?
> 
yes, i think so. in konsole, your shell parses it's startup scripts
and therefore has your specified path settings.
kde runs directly from the x session and therefore doesn't know anything
about your startup files. 
and no, this is NOT a bug in kdm. :)
fixing this problem for path is fairly easy: add the right paths to
the userPath variable in /etc/x11/kdm/kdm-config.

gruß ;)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.




  1   2   >