Re: update-menus, does it work? UPDATE 2

1999-05-16 Thread Lazarus Long
On Friday, May 14, 1999 at 15:53:16 -0800, Adam Shand wrote:

  so it looks like root isn't supposed to be able to do this.

This may be because root account is intended only for certain
administrative tasks.  For everything else, one should (create and)
use a normal user account.  I don't believe there is much, if anything,
that would require X11 in the list of things that require one to be root
at the time.

-- 

PGP Public Key available on request:
Type Bits/KeyIDDate   User ID
pub  1024/CFED2D11 1998/03/05 Lazarus Long [EMAIL PROTECTED]
Key fingerprint = 98 2A 56 34 16 76 D5 21  39 93 99 EA 89 D4 B5 A2


Re: update-menus, does it work? UPDATE 2

1999-05-15 Thread Adam Shand

  It may not be pretty or proper but it seems to work.  Putting this is either
  ~/.menu/ or /etc/menu and running update-menus as a user or root causes the
  menu item to appear properly.  Hope this helps.
 
 Right!!  I found this out at 2 AM this morning!
 
 Two kudos tho, it works here in only /etc/menu or ~/.menu. It doesn't
 seem to work in /root/.menu.
 
 Checking the output of update-menus doesn't even indicate it even checks
 /root/.menu.  So I have not been able to remove the netscape entries
 from Apps/net, yet.

i was poking around here and found this in the man page for update-menus.

~/.menu/*
Menu files added by the user. (Isn't read if 
root runs update-menus)

so it looks like root isn't supposed to be able to do this.

adam.


Re: update-menus, does it work? UPDATE 2

1999-05-15 Thread Wayne Topa

Subject: Re: update-menus, does it work? UPDATE 2
Date: Fri, May 14, 1999 at 03:53:16PM -0800

In reply to:Adam Shand

Quoting Adam Shand([EMAIL PROTECTED]):
 
   It may not be pretty or proper but it seems to work.  Putting this is 
   either
   ~/.menu/ or /etc/menu and running update-menus as a user or root causes 
   the
   menu item to appear properly.  Hope this helps.
  
  Right!!  I found this out at 2 AM this morning!
  
  Two kudos tho, it works here in only /etc/menu or ~/.menu. It doesn't
  seem to work in /root/.menu.
  
  Checking the output of update-menus doesn't even indicate it even checks
  /root/.menu.  So I have not been able to remove the netscape entries
  from Apps/net, yet.
 
 i was poking around here and found this in the man page for update-menus.
 
 ~/.menu/*
 Menu files added by the user. (Isn't read if 
   root runs update-menus)
 
 so it looks like root isn't supposed to be able to do this.
 

  I didn't read it like that.  I thought it meant that if ~user/.menu
had an item it wouldn't be picked up by root running update-menus.  It
never occured to me that it wouldn't allow root to do it for him/her
self. 

 Shades of RedHat, root isn't smart enough to run Netscape
(because it's a Security issue) and just to rub it in he can't remove 
it from his X menu!

 
-- 
Windows95 (noun): 32 bit extensions and a graphical shell for a 16 bit
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company, that can't stand 1 bit of
competition.
___
Wayne T. Topa [EMAIL PROTECTED]


Re: update-menus, does it work? UPDATE 2

1999-05-10 Thread Wayne Topa

Subject: Re: update-menus, does it work? UPDATE
Date: Sun, May 09, 1999 at 05:50:07PM -0700

In reply to:[EMAIL PROTECTED]

Quoting [EMAIL PROTECTED]([EMAIL PROTECTED]):
 I don't know if this will help, but I encountered problems myself with
 update-menus, being unable to add menu entries for certain packages.  However
 I was able to manage a workaround by prefixing the package name with a
 local.  For example:
 
 ?package(local.Eterm):\
 needs=X11\
 section=Personal\
 title=Eterm\
 command=/usr/bin/Eterm --theme custom --name Eterm
 
 It may not be pretty or proper but it seems to work.  Putting this is either
 ~/.menu/ or /etc/menu and running update-menus as a user or root causes the
 menu item to appear properly.  Hope this helps.
 
 MBG

Right!!  I found this out at 2 AM this morning!

Two kudos tho, it works here in only /etc/menu or ~/.menu.
It doesn't seem to work in /root/.menu.

Checking the output of update-menus doesn't even indicate it 
even checks /root/.menu.  So I have not been able to remove the
netscape entries from Apps/net, yet.

Thanks for the post
-- 
User n.:
A programmer who will believe anything you tell him.
___
Wayne T. Topa [EMAIL PROTECTED]


Re: update-menus, does it work? UPDATE 2

1999-05-10 Thread Andrew Chung
 Quoting [EMAIL PROTECTED]([EMAIL PROTECTED]):
  I don't know if this will help, but I encountered problems myself with
  update-menus, being unable to add menu entries for certain packages.  
  However
  I was able to manage a workaround by prefixing the package name with a
  local.  For example:
 Right!!  I found this out at 2 AM this morning!
 
 Two kudos tho, it works here in only /etc/menu or ~/.menu.
 It doesn't seem to work in /root/.menu.

Just a thought... does your root account have the $HOME env variable set?
update-menus uses that to find the .menu dir 

It almost sounds like update-menus isn't reading your packages file
correctly.. The local. makes update-menus skip the check on whether the
package is installed. Apparently it's reading the menu file correctly, but
it cannot figure out whether the package is installed or not.

Try this:
dpkg --get-selections|sed -e 's/[ \t]*\\(install\\|hold\\)$//p' | grep tcd

If it doesn't show anything then something's really wrong..
-- 
Andrew Chung[EMAIL PROTECTED]
See http://anderoo.dhs.org/~anderoo/pgp.html for PGP key

It's a sin only if you dwell on the what ifs and the but ifs


Re: update-menus, does it work? UPDATE 2

1999-05-10 Thread Wayne Topa

Subject: Re: update-menus, does it work? UPDATE 2
Date: Mon, May 10, 1999 at 01:02:25PM -0400

In reply to:Andrew Chung

Quoting Andrew Chung([EMAIL PROTECTED]):
  Quoting [EMAIL PROTECTED]([EMAIL PROTECTED]):
   I don't know if this will help, but I encountered problems myself with
   update-menus, being unable to add menu entries for certain packages.  
   However
   I was able to manage a workaround by prefixing the package name with a
   local.  For example:
  Right!!  I found this out at 2 AM this morning!
  
  Two kudos tho, it works here in only /etc/menu or ~/.menu.
  It doesn't seem to work in /root/.menu.
 
 Just a thought... does your root account have the $HOME env variable set?
 update-menus uses that to find the .menu dir 
 
  Yes echo $HOME 
  /root
 It almost sounds like update-menus isn't reading your packages file
 correctly.. The local. makes update-menus skip the check on whether the
 package is installed. Apparently it's reading the menu file correctly, but
 it cannot figure out whether the package is installed or not.
 
 Try this:
 dpkg --get-selections|sed -e 's/[ \t]*\\(install\\|hold\\)$//p' | grep tcd

tcd install

I no longer have gtcd in /root/.menu
Even when I did the log did not show any
Reading menuentryfiles  in /root/.menu

It did show /etc/menu and /usr/lib/menu entries tho.


BTW Andrew, I tried to update my potato dist last night to see what
the menu program looked like there.  Busted (the distribution).  Can't
connect to the net anymore, its coming up with the error (can't find
/user/.ppprc file.  Haven't got time to troubleshoot it now but I will
soon.

Wayne

-- 
|  LINUX - Because a PC is a terrible thing to waste..on WinDoze  |
___
Wayne T. Topa [EMAIL PROTECTED]