diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-28 09:23:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-28 09:23:17 +0000 |
commit | 2a3ba746cf91cec6aec8080bccc0326be449525d (patch) | |
tree | 55d9aed5214495cfbdd201b93016f117b4934dca /menu | |
parent | 4317514b3f175e75e8a7e32eb2a635f56d3a518e (diff) | |
download | common-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-x | menu/xdg_menu | 2 |
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*$//; |