]>
Commit | Line | Data |
---|---|---|
e0bdc6ec AM |
1 | diff -urN ooo-build-1.3.2.org/bin/ooo-wrapper.in ooo-build-1.3.2/bin/ooo-wrapper.in |
2 | --- ooo-build-1.3.2.org/bin/ooo-wrapper.in 2004-08-29 22:33:54.333582984 +0200 | |
3 | +++ ooo-build-1.3.2/bin/ooo-wrapper.in 2004-08-29 22:35:19.000000000 +0200 | |
4 | @@ -422,10 +422,27 @@ | |
5 | ||
6 | # select the preferred icons set by the running windowmanager | |
7 | unless (defined $icons_set) { | |
8 | - $icons_set="kde" if (-d "$SystemInstallDir/program/resource.kde" && | |
9 | - "$ENV{WINDOWMANAGER}" =~ ".*kde\$"); | |
10 | - $icons_set="gnome" if (-d "$SystemInstallDir/program/resource.gnome" && | |
11 | - "$ENV{WINDOWMANAGER}" =~ ".*gnome\$"); | |
12 | + if (exists $ENV{WINDOWMANAGER}) { | |
13 | + if (-d "$SystemInstallDir/program/resource.kde" && | |
14 | + "$ENV{WINDOWMANAGER}" =~ ".*kde\$") { | |
15 | + $icons_set="kde"; | |
16 | + } elsif (-d "$SystemInstallDir/program/resource.gnome" && | |
17 | + "$ENV{WINDOWMANAGER}" =~ ".*gnome\$") { | |
18 | + $icons_set="gnome"; | |
19 | + } | |
20 | + } | |
21 | + | |
22 | + if (not defined $icons_set) { | |
23 | + if (-d "$SystemInstallDir/program/resource.default") { | |
24 | + $icons_set="default"; | |
25 | + } elsif (-d "$SystemInstallDir/program/resource.kde") { | |
26 | + $icons_set="kde"; | |
27 | + } elsif (-d "$SystemInstallDir/program/resource.gnome") { | |
28 | + $icons_set="gnome"; | |
29 | + } else { | |
30 | + $icons_set="default"; | |
31 | + } | |
32 | + } | |
33 | } | |
34 | ||
35 | if (defined $icons_set) { |