diff options
author | Mystery Man <unknown@mandriva.org> | 2001-07-31 05:30:56 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-07-31 05:30:56 +0000 |
commit | 554855919ae7b109801c93c9f6ca212d5c0b6483 (patch) | |
tree | 62776857120c45deb3a2ac56481008fa27b17ec8 /sbin/kdeDesktopCleanup | |
parent | 8872a532d7b144d3e2cf655db6a1644f656033b0 (diff) | |
download | common-data-topic/Eazel.tar common-data-topic/Eazel.tar.gz common-data-topic/Eazel.tar.bz2 common-data-topic/Eazel.tar.xz common-data-topic/Eazel.zip |
This commit was manufactured by cvs2svn to create branch 'Eazel'.topic/Eazel
Diffstat (limited to 'sbin/kdeDesktopCleanup')
-rwxr-xr-x | sbin/kdeDesktopCleanup | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sbin/kdeDesktopCleanup b/sbin/kdeDesktopCleanup deleted file mode 100755 index 1ff6ea0..0000000 --- a/sbin/kdeDesktopCleanup +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/perl -# (c) MandrakeSoft, Pixel <pixel@mandrakesoft.com> -# Copyright under GPL - -@dirs = (qw(/etc/skel /root), glob("/home/*")); -@path = split ":", "/sbin:/usr/sbin:/usr/X11R6/bin:/bin:/usr/bin"; - -foreach $f (map { grep { /\.kdelnk$/ } eval { all("$_/Desktop") } } @dirs) { - open F, $f or next; - L: foreach (<F>) { - if (/^Exec=(?:kdesu\s+-c\s+)?"?(\S+)/) { - -x "$_/$1" and last L foreach '', @path; - } elsif (m|^URL=file:(/.*)|) { - -e $1 and last; - } else { next } - print STDERR "removing $f\n"; - unlink $f; - last; - } -} - -sub all { - my $d = shift; - local *F; - opendir F, $d or die "all: can't open dir $d: $!\n"; - my @l = grep { $_ ne '.' && $_ ne '..' } readdir F; - closedir F; - - map { "$d/$_" } @l; -} |