<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>227836</bug_id>
          
          <creation_ts>2010-02-20 18:36:26 +0000</creation_ts>
          <short_desc>kde menu editor, move item doesn&apos;t work</short_desc>
          <delta_ts>2010-04-01 17:58:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmenuedit</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rufus Laggren">rufusl2001</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          <cc>annma</cc>
    
    <cc>maris.kde</cc>
    
    <cc>nzlbob2332</cc>
    
    <cc>opensource</cc>
    
    <cc>P.Suetterlin</cc>
    
    <cc>roland.leissa</cc>
    
    <cc>superaphke</cc>
    
    <cc>Wolfram.R.Sieber</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>921207</commentid>
    <comment_count>0</comment_count>
    <who name="Rufus Laggren">rufusl2001</who>
    <bug_when>2010-02-20 18:36:26 +0000</bug_when>
    <thetext>Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

Standard user. Editor appears to work when rearranging folders and items but, after saving, items have not moved or do not appear in expected places on the Classic or KickOff menus. Same result whether starting (by context menu off system menu button at left of panel) from the Classic or the KickOff style menu.

Note1: When saving after making changes the progress but goes to 15%, then starts over and gets to about 1/2 point then the menu editor window closes (it&apos;s completed).

Note2: Kde4 installed with _upgrade_ from Suse 11.0 to 11.2; the Suse11.0 was an upgrade from Suse10.3; Suse10.3 was a clean install. Don&apos;t recall if the Suse11.0 system used Kde3 or Kde4.

Reproduce: Always. Can&apos;t get system menu changed.

Expected: System menu should match the tree shown in the menu editor, after saving.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>928445</commentid>
    <comment_count>1</comment_count>
    <who name="Roland Leißa">roland.leissa</who>
    <bug_when>2010-03-04 19:28:47 +0000</bug_when>
    <thetext>KDE Menu Editor still totally buggy in KDE SC 4.4.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>930394</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Dunn">nzlbob2332</who>
    <bug_when>2010-03-08 07:17:21 +0000</bug_when>
    <thetext>duplicate of https://bugs.kde.org/show_bug.cgi?id=99420 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936564</commentid>
    <comment_count>3</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-19 16:10:33 +0000</bug_when>
    <thetext>Confirmed but this product has no maintainer...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936570</commentid>
    <comment_count>4</comment_count>
    <who name="Māris Nartišs">maris.kde</who>
    <bug_when>2010-03-19 16:25:43 +0000</bug_when>
    <thetext>Possibly related bugs: #229665 #102723 #110241 #186683 #221259 #110565 #93923 #102349 #219854 #186683</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936602</commentid>
    <comment_count>5</comment_count>
    <who name="Māris Nartišs">maris.kde</who>
    <bug_when>2010-03-19 17:39:04 +0000</bug_when>
    <thetext>I compared KMenuedit 0.7 running 3.5.10 and 0.8 running 4.4.1 output in .config/menu/applications-kmenuedit.menu after performing following steps:
mv applications-kmenuedit.menu /some/other/place
launch KMenuedit
Move &quot;Games&quot; folder to &quot;Utilities&quot;

  &lt;Move&gt;
-  &lt;Old&gt;Games&lt;/Old&gt;
-  &lt;New&gt;Utilities/Games&lt;/New&gt;
+  &lt;Old&gt;Games/&lt;/Old&gt;
+  &lt;New&gt;Utilities/Games/&lt;/New&gt;
  &lt;/Move&gt;

After I removed tailing / from Games, folder got moved in Kickoff too.

Workaround for all - open .config/menu/applications-kmenuedit.menu with kate  and check for:
1) tailing / at end of folder names;
2) folder names ending with -2 or -1. Delete &lt;move&gt; blocks with &quot;foldername-2&quot; and fix any references to &quot;foldername-2&quot; to point to real name (&quot;foldername&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936898</commentid>
    <comment_count>6</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-20 14:56:39 +0000</bug_when>
    <thetext>If someone has the source and can try the following patch: it fixes the trailing / (so it fixes the moving of folders when there is not the same named folder in the moved folder)

Index: menufile.cpp
===================================================================
--- menufile.cpp	(revision 1105524)
+++ menufile.cpp	(working copy)
@@ -408,14 +408,14 @@
       commonMenuName += &apos;/&apos; + oldMenuParts[i];
    }
    QString oldMenuName;
-   for(int j = i; j &lt; oldMenuParts.count(); j++)
+   for(int j = i; j &lt; oldMenuParts.count()-1; j++)
    {
       if (i != j)
          oldMenuName += &apos;/&apos;;
       oldMenuName += oldMenuParts[j];
    }
    QString newMenuName;
-   for(int j = i; j &lt; newMenuParts.count(); j++)
+   for(int j = i; j &lt; newMenuParts.count()-1; j++)
    {
       if (i != j)
          newMenuName += &apos;/&apos;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936901</commentid>
    <comment_count>7</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-20 15:02:15 +0000</bug_when>
    <thetext>*** Bug 229665 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936903</commentid>
    <comment_count>8</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-20 15:05:47 +0000</bug_when>
    <thetext>*** Bug 102723 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936906</commentid>
    <comment_count>9</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-20 15:07:14 +0000</bug_when>
    <thetext>*** Bug 110241 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936918</commentid>
    <comment_count>10</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-20 15:12:58 +0000</bug_when>
    <thetext>*** Bug 186683 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>937529</commentid>
    <comment_count>11</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-21 09:44:26 +0000</bug_when>
    <thetext>Anyone tried the patch?

What are the other obvious bugs with KMenuEdit in KDE 4.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938361</commentid>
    <comment_count>12</comment_count>
    <who name="Māris Nartišs">maris.kde</who>
    <bug_when>2010-03-22 13:08:11 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; Anyone tried the patch?
&gt; 
&gt; What are the other obvious bugs with KMenuEdit in KDE 4.4?

AFAIK no.
Could You, please, reformat patch as file in form suitable to apply directly to 4.4.1 release tarball? I have no idea where this &quot;menu.cpp&quot; file is located, still I can define a patch to apply after unpacking application and before compiling it (Gentoo here).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938372</commentid>
    <comment_count>13</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-22 13:19:33 +0000</bug_when>
    <thetext>menufile.cpp is in kdebase/workspace/kmenuedit/ and the patch is to be applied in that directory against 4.4.1 sources.
I&apos;ll be away for 1 week starting tomorrow until 29 March evening without internet!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939151</commentid>
    <comment_count>14</comment_count>
    <who name="Māris Nartišs">maris.kde</who>
    <bug_when>2010-03-23 18:01:30 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; Anyone tried the patch?
&gt; 
This patch works. After recompiling with this patch, moving folders in KMenuedit works just fine and generated .menu file is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>942371</commentid>
    <comment_count>15</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-03-30 10:33:33 +0000</bug_when>
    <thetext>SVN commit 1108974 by annma:

Move folders correctly. Thanks a lot Maris for all the investigation and the patch testing, it&apos;s very nice of you having taken the time to research this bug!
BUG=227836


 M  +2 -2      menufile.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1108974</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943484</commentid>
    <comment_count>16</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-04-01 17:58:21 +0000</bug_when>
    <thetext>SVN commit 1110017 by annma:

also in trunk!
CCBUG=227836


 M  +2 -2      menufile.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1110017</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>