Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178000 - media-video/projectx-0.90.4.00-r3 ignores umask
Summary: media-video/projectx-0.90.4.00-r3 ignores umask
Status: RESOLVED DUPLICATE of bug 177998
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 06:47 UTC by Heiko Baums
Modified: 2007-05-12 03:48 UTC (History)
2 users (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:47:37 UTC
media-video/projectx-0.90.4.00-r3 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 a file with ProjectX the file has the permissions 644 (rw-r--r--) instead.
Comment 1 Heiko Baums 2007-05-11 06:54:34 UTC
I noticed that this problem also exists with some other packages.
See also bug #177944 (app-office/openoffice) and bug #177998 (media-video/kaffeine).
Comment 2 Heiko Baums 2007-05-11 13:51:07 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 ProjectX 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.

Maybe this bug should be reassigned to KDE herd or KDE herd should be added to the CC list.

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 Stefan Briesenick (RETIRED) gentoo-dev 2007-05-11 22:17:32 UTC
well, since ProjectX is a JAVA application and just uses the JAVA file-APIs, it doesn't ignore umask. Indeed, it has to chmod() a file to circumvent umask.

So I don't see this as a ProjectX bug. But it's easy to test:

#~ umask 077 && projectx

I did this test and this is the result:
-rw------- 1 stefan users     242 12. Mai 00:11 X.ini

if you want to set your umask KDE wide, then /usr/kde/<version>/env/ would be a good place to put your scripts in. But if at all, it's a fault in BASH and/or KDE not sourcing your ~/.bashrc.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-05-11 23:49:07 UTC
(In reply to comment #2)
> 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 ProjectX itself but in
> KDE (3.5.6) which doesn't source ~/.bashrc or ~/.bash_profile during a login
> even if it should.
> 

Please check my comment in https://bugs.gentoo.org/show_bug.cgi?id=177998#c3
Comment 5 Heiko Baums 2007-05-12 03:25:33 UTC
(In reply to comment #4)
> Please check my comment in https://bugs.gentoo.org/show_bug.cgi?id=177998#c3

Answer is there. ;-)

Comment 6 Heiko Baums 2007-05-12 03:34:56 UTC
(In reply to comment #3)
> if you want to set your umask KDE wide, then /usr/kde/<version>/env/ would be a
> good place to put your scripts in.

Thanks for the hint.
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.

> But if at all, it's a fault in BASH and/or
> KDE not sourcing your ~/.bashrc.

That's why I've written my comment about adding KDE herd to the CC list. ;-)

Bash sources my ~/.bashrc without any problems but KDE doesn't. I think this should be done by KDE automatically without an additional script. So I would say this is a fault in KDE.
Comment 7 Heiko Baums 2007-05-12 03:48:51 UTC
In the meantime I'm also sure that this is not a projectx bug.

*** This bug has been marked as a duplicate of bug 177998 ***