Bug 53501

Summary: Expunge old menu items
Product: [Applications] kmenuedit Reporter: Boyan Ivanov <boyan17>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: emailgregn, hjunes, praseodym+kdebugzilla, psychonaut
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nick 2003-01-28 03:42:38 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.1 
OS:          Linux

I think a program similar to the menu updateing tool would be useful .... The program could look at each item and verify if the path is valid or not ... if the path is valid, leave the entry alone, but if the path is invalid .. the entry should be deleted from the menu
Comment 1 John Firebaugh 2003-07-06 05:08:29 UTC
*** Bug 59988 has been marked as a duplicate of this bug. ***
Comment 2 Waldo Bastian 2004-05-04 16:09:28 UTC
*** Bug 65030 has been marked as a duplicate of this bug. ***
Comment 3 Jaime Torres 2004-05-19 16:59:22 UTC
It could also be useful to find duplicated entries in the menu pointing to the same item.
Comment 4 Stephan Kulow 2004-05-29 16:34:29 UTC
Replaced dotnick@punkass.com with boyan17@bulgaria.com due to bounces by reporter
Comment 5 Tristan Miller 2004-10-26 14:58:31 UTC
Instead of simply deleting broken entries, it would be helpful if the user was prompted what to do.  Sometimes files get moved (e.g., from /usr/local/bin to /usr/bin, when a vendor finally provides an RPM for a package which was previously available only via source).  KDE could probably check some default paths (/usr/bin, /usr/local/bin, /usr/sbin, etc.) to try to locate the missing file, and specify that as a default.  An example dialog window might look as follows:

+----------------------------------------------------------+
|KMenuEdit - Warning                                       |
+----------------------------------------------------------+
|                                                          |
| Program Applications->Media->Foo Media Player not found. |                                                                  |                                                          |
| The path to the program was specified as                 |
|                                                          |
|       /home/suzie/bin/foo                                |
|                                                          |
| but I cannot find it there.  What should I do?           |
|                                                          |
| ( ) Delete this entry from the menu                      |
| ( ) Leave this entry as-is                               |
| (*) Specify new path: +--------------------+ +---------+ |
|                       |/usr/bin/foo        | |Browse...| |
|                       +--------------------+ +---------+ |
|                                                          |
|                                            +--+ +------+ |
|                                            |OK| |Cancel| |
|                                            +--+ +------+ |
+----------------------------------------------------------+
Comment 6 Tristan Miller 2004-11-08 02:08:47 UTC
Oops... that ASCII diagram got screwed up somehow.  Here's another, hopefully correct, attempt:

+----------------------------------------------------------+
|KMenuEdit - Warning                                       |
+----------------------------------------------------------+
|                                                          |
| Program Applications->Media->Foo Media Player not found. |
|                                                          |
| The path to the program was specified as                 |
|                                                          |
|       /home/suzie/bin/foo                                |
|                                                          |
| but I cannot find it there.  What should I do?           |
|                                                          |
| ( ) Delete this entry from the menu                      |
| ( ) Leave this entry as-is                               |
| (*) Specify new path: +--------------------+ +---------+ |
|                       |/usr/bin/foo        | |Browse...| |
|                       +--------------------+ +---------+ |
|                                                          |
|                                            +--+ +------+ |
|                                            |OK| |Cancel| |
|                                            +--+ +------+ |
+----------------------------------------------------------+
Comment 7 Will Stephenson 2009-11-23 18:28:02 UTC
*** Bug 99735 has been marked as a duplicate of this bug. ***
Comment 8 Will Stephenson 2009-11-23 18:33:05 UTC
*** Bug 124364 has been marked as a duplicate of this bug. ***