Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177998 - kde-base/kde(-meta)-3.5.6 ignores umask
Summary: kde-base/kde(-meta)-3.5.6 ignores umask
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 177944 178000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-11 06:46 UTC by Heiko Baums
Modified: 2008-12-03 15:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Baums 2007-05-11 06:46:20 UTC
media-video/kaffeine-0.8.4 ignores umask.

For one user I've set 'umask 077' in his ~/.bashrc. So every normal file which is written by this user should have and usually has the file permissions 600 (rw-------) but when this user saves/records a file with Kaffeine the file has the permissions 644 (rw-r--r--) instead.
Comment 1 Heiko Baums 2007-05-11 06:54:03 UTC
I noticed that this problem also exists with some other packages.
See also bug #177944 (app-office/openoffice) and bug #178000 (media-video/projectx).
Comment 2 Heiko Baums 2007-05-11 13:46:42 UTC
After searching a while in the forums and because there are at least 3 GUI programs affected I guess that it could be a bug not in Kaffeine itself but in KDE (3.5.6) which doesn't source ~/.bashrc or ~/.bash_profile during a login even if it should.

And every hint I found in the forums didn't help or was already implemented.

I don't know if this helps but I'm starting KDE by /etc/init.d/xdm at boot time in the default runlevel.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-05-11 22:50:09 UTC
You should have the following in your /usr/kde/3.5/share/config/kdm/Xsession

case $SHELL in
  */bash)
    [ -z "$BASH" ] && exec $SHELL $0 "$@"
    set +o posix
    [ -f /etc/profile ] && . /etc/profile
    if [ -f $HOME/.bash_profile ]; then
      . $HOME/.bash_profile
    elif [ -f $HOME/.bash_login ]; then
      . $HOME/.bash_login
    elif [ -f $HOME/.profile ]; then
      . $HOME/.profile
    fi

If you don't have this section in the file, emerge kdm again.
Comment 4 Heiko Baums 2007-05-12 03:19:47 UTC
I'm having this in my /usr/kde/3.5/share/config/kdm/Xsession.
It's, btw., a fresh Gentoo install.

In /etc/rc.conf I'm having this line:
XSESSION="kde-3.5"

And after looking into /etc/X11/Sessions/kde-3.5 and /usr/kde/3.5/bin/startkde I found out that these files aren't sourced by the script startkde. So I guess this should be changed. Or am I wrong?

Setting XSESSION="Xsession" in /etc/rc.conf doesn't help also. These files are still not sourced.
Comment 5 Heiko Baums 2007-05-12 03:42:39 UTC
As suggested by Stefan Briesenick in bug #178000 I've put the following script "setumask.sh" into ~/.kde3.5/env.

#!/bin/bash
umask 077

This works but looks for me only as a workaround. I think this should be done by KDE automatically without an additional script. So I would say this is a fault in KDE.

I've renamed this bug because this issue is not only related to Kaffeine but to every GUI program which is run in KDE.
Comment 6 Heiko Baums 2007-05-12 03:46:47 UTC
*** Bug 177944 has been marked as a duplicate of this bug. ***
Comment 7 Heiko Baums 2007-05-12 03:48:51 UTC
*** Bug 178000 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Lauer gentoo-dev 2008-12-02 23:16:42 UTC
Is this still an issue with newer versions?
Comment 9 Heiko Baums 2008-12-03 15:06:34 UTC
To be honest, I can't tell you, because I kept the script mentioned in comment #5 until kde-3.5.9, which I'm still using.

And I won't update to kde-4, because the last "stable" kde-4 version I've tested was so unstable and buggy that it's not usable. And kde-4 eats up far too many ressources.

So after many years using KDE it's time to have a look at Xfce.