aboutsummaryrefslogtreecommitdiffstats
path: root/menu
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-28 09:23:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-28 09:23:17 +0000
commit2a3ba746cf91cec6aec8080bccc0326be449525d (patch)
tree55d9aed5214495cfbdd201b93016f117b4934dca /menu
parent4317514b3f175e75e8a7e32eb2a635f56d3a518e (diff)
downloadcommon-data-2a3ba746cf91cec6aec8080bccc0326be449525d.tar
common-data-2a3ba746cf91cec6aec8080bccc0326be449525d.tar.gz
common-data-2a3ba746cf91cec6aec8080bccc0326be449525d.tar.bz2
common-data-2a3ba746cf91cec6aec8080bccc0326be449525d.tar.xz
common-data-2a3ba746cf91cec6aec8080bccc0326be449525d.zip
don't call "kde-config --path xdgdata-apps" when running as root, since weV2008_0_5mdv
don't want to modify /root. as for /usr/share/applications that's also returned in @kde_xdgdata, it is transformed to /usr/share which is already hardcoded and so unneeded. this gets rid of /.kde created during install (where HOME=/)
Diffstat (limited to 'menu')
-rwxr-xr-xmenu/xdg_menu2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu/xdg_menu b/menu/xdg_menu
index f7fcea5..84b38ec 100755
--- a/menu/xdg_menu
+++ b/menu/xdg_menu
@@ -1830,7 +1830,7 @@ sub get_app_dirs
{
my %used;
my $ret = '';
- my @kde_xdgdata = split(/:/, `kde-config --path xdgdata-apps`);
+ my @kde_xdgdata = $> ? split(/:/, `kde-config --path xdgdata-apps`) : ();
foreach $_ (@kde_xdgdata) {
s/\/applications\/*\s*$//;