summaryrefslogtreecommitdiff
path: root/scripts/xdg-menu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/xdg-menu')
-rwxr-xr-xscripts/xdg-menu6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xdg-menu b/scripts/xdg-menu
index b89ece7..2382a7a 100755
--- a/scripts/xdg-menu
+++ b/scripts/xdg-menu
@@ -31,7 +31,6 @@
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
-#
#---------------------------------------------
usage()
@@ -52,7 +51,7 @@ _USAGE
update_desktop_database()
{
- echo Update desktop database: $mode
+# echo Update desktop database: $mode
if [ "$mode" = "system" ] ; then
for x in `echo $PATH | sed 's/:/ /g'` /opt/gnome/bin; do
if [ -x $x/update-desktop-database ] ; then
@@ -229,7 +228,8 @@ else
gnome_dir=$gnome_global_dir
my_umask=022
if [ -n "$xdg_dir $kde_dir $gnome_dir" ] ; then
- echo Error: No writable system menu directory found.
+ [ `whoami` = "root" ] || rootmsg="Try as root or use --user."
+ echo Error: No writable system menu directory found. $rootmsg
exit 3
fi
fi