The time now is Tue 24 Apr 2018, 14:44
All times are UTC - 4 |
Page 3 of 3 [33 Posts] |
Goto page: Previous 1, 2, 3 |
Author |
Message |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Tue 05 Jul 2005, 11:43 Post subject:
|
|
papaschtroumpf wrote: |
Then the answer is no.
Or if the app has access to /root then it's a security risk (probably mean a user could see and erase root's trash files, no good). |
Since you always run as root in Puppy I don't really see it as an issue, but you could easily change where the hidden trash file resides. For instance /usr/X11R6 or you could have a trash file for every user in their home account..
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Sun 10 Jul 2005, 00:49 Post subject:
|
|
Well "Trash" seams to be fairly well received. (down loaded 19 times so far) I am working on the next upgrade. I gave it the ability to move multiple items to the trash simultaneously. Now I would like it to test and see if anything is using the sound card and skip playing the trash sound file if the sound card is already in use. Does any one know how to see if another application is using the sound card? Otherwise I will just have to test for all popular sound apps individually, which I would rather not do. Thanks
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Sun 10 Jul 2005, 23:07 Post subject:
How to detect if an app is already using the audio |
|
I figured it out. Here is the code that I will be using to test if the sound file will cause problems.
Code: |
# See if /dev/dsp is in use. If it is then do not play the sound file.
fuser /dev/dsp
if [ $? -eq 0 ];then #=0 if found.
exit
else
play.tcl $APPDIR/systemmsg.wav
fi
exit
|
|
Back to top
|
|
 |
|
Page 3 of 3 [33 Posts] |
Goto page: Previous 1, 2, 3 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
[ Time: 0.0300s ][ Queries: 13 (0.0075s) ][ GZIP on ] |