Bug 232770 - Backgroundsettings are twice in XFCE contextmenu
Backgroundsettings are twice in XFCE contextmenu
Product: Fedora
Classification: Fedora
Component: xfce-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Kevin Fenzi
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-03-17 08:47 EDT by Heiko Adams
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-19 15:47:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Screenshot of my xfce contextmenu (118.47 KB, image/png)
2007-03-17 13:53 EDT, Heiko Adams
no flags Details
XFCE Menu config (703 bytes, text/xml)
2007-03-19 15:35 EDT, Heiko Adams
no flags Details

  None (edit)
Description Heiko Adams 2007-03-17 08:47:45 EDT
Description of problem:
When looking into the settings section of XFCE's contextmenu there are two items
for configuring the background and both do the same. IMHO one of these could be
Comment 1 Kevin Fenzi 2007-03-17 13:30:59 EDT
Odd. I am not seeing this at all here... 

Can you describe exactly where the two entries are? 
Are they named the same thing? 

Here I have Settings->Desktop Settings, which is the only place I see to set the
Comment 2 Heiko Adams 2007-03-17 13:53:31 EDT
Created attachment 150313 [details]
Screenshot of my xfce contextmenu

I made s screenshot of my xfce contextmen and marked the duplicates with a red
dot. They are called "Hintergrund ..." and "Hintergrundeinstellungen". Maybe
this helps you.
Comment 3 Kevin Fenzi 2007-03-17 14:03:01 EDT
ok. Can you tell me what the following command outputs: 

grep -i "Hintergrund" /usr/share/applications/*.desktop
/usr/share/applications/*/*.desktop /usr/share/applnk/*/*.desktop 

Basically Xfce generates it's menu by looking at the desktop files in those
directories. You have some other application thats providing "Hintergrund" and
it's getting added there. If we find out what application that is you can remove
it or we can get it fixed if it's in the wrong place. 

Comment 4 Heiko Adams 2007-03-17 14:25:24 EDT
This is the output of grep:
Desktop-Hintergrundeinstellungen festlegen
grep: /usr/share/applnk/*/*.desktop: Datei oder Verzeichnis nicht gefunden
Comment 5 Kevin Fenzi 2007-03-17 22:37:16 EDT
How about this: can you look and see if you have a: 


Can you look in that file and paste in the line that has the first "Hintergrund"
occurance in it? 
Comment 6 Heiko Adams 2007-03-18 06:17:27 EDT
The first line with "Hintergrund" is:
<app name="Hintergrund ..." cmd="xfce-setting-show backdrop" icon=""
term="false" snotify="false" />

The second one is:
<app name="Hintergrundeinstellungen" cmd="xfce-setting-show backdrop"
icon="xfce4-backdrop" term="false" snotify="true" />
Comment 7 Kevin Fenzi 2007-03-18 16:41:09 EDT
Interesting. So, it's picking that up somewhere from a .desktop file... the
trick is finding out which one. In that same directory there should be a file
that ends in .rc. Thats the list of directories and files that it's using to
generate the menu. 

If I could get you to run this little script that might tell us where the file
we are interested in is:  

for i in `grep location menu-cache--etc-xdg-xfce4-desktop-menu.xml.rc | awk -F=
'{print $2}'`
grep Hintergrund $i/*.desktop

Thanks for bearing with me on this... hopefully we can get it tracked down. 
Comment 8 Heiko Adams 2007-03-18 18:27:23 EDT
Sorry, but your script doesn't work, because "print $2: command not found"

But when I exec this scritp:
for i in `grep location menu-cache--home-heiko-.config-xfce4-desktop-menu.xml.rc`
grep Hintergrund $i*.desktop

The output is:
grep: location0=/home/heiko/.config/xfce4/desktop/menu.xml*.desktop: Datei oder
Verzeichnis nicht gefunden
grep: location0=/home/heiko/.local/share/applications/*.desktop: Datei oder
Verzeichnis nicht gefunden
grep: location1=/usr/share/applications//screensavers*.desktop: Datei oder
Verzeichnis nicht gefunden
grep: location2=/usr/share/applications/*.desktop: Datei oder Verzeichnis nicht
grep: location3=/usr/share/applications//screensavers*.desktop: Datei oder
Verzeichnis nicht gefunden
grep: location4=/usr/share/applications/*.desktop: Datei oder Verzeichnis nicht
grep: location5=/home/heiko/.local/share/applications/*.desktop: Datei oder
Verzeichnis nicht gefunden
Comment 9 Kevin Fenzi 2007-03-19 13:35:48 EDT
It looks like it got linewrapped or otherwise messed up cutting and pasting from
bugzilla. ;( 

Can you instead download: 

and run it and attach the output here?

Thanks again. 
Comment 10 Heiko Adams 2007-03-19 13:55:58 EDT
Okay, this is the output of your script:
grep: /home/heiko/.config/xfce4/desktop/menu.xml/*.desktop: Ist kein Verzeichnis
grep: /home/heiko/.local/share/applications//*.desktop: Datei oder Verzeichnis
nicht gefunden
Desktop-Hintergrundeinstellungen festlegen
Desktop-Hintergrundeinstellungen festlegen
grep: /home/heiko/.local/share/applications//*.desktop: Datei oder Verzeichnis
nicht gefunden
Comment 11 Kevin Fenzi 2007-03-19 14:10:25 EDT
ok. That looks right. 

Can you pull up the Menu editor? Settings->Menu Editor
and see if there is an entry that is below the Settings manager line for the
background setting?



  Settings manager    xfce-setting-show
  Hintergrund         xfce-setting-show backdrop
  -- seperator --
  -- include --       system
Comment 12 Heiko Adams 2007-03-19 15:35:14 EDT
Created attachment 150421 [details]
XFCE Menu config

My menu config looks exactly as in your example
Comment 13 Kevin Fenzi 2007-03-19 15:38:53 EDT
ok, thats the problem. At some point that entry was added in the menu editor. 

In the Menu editor, select the Hintergrund line, and click the - button. 
Save your changes and close the menu editor. 

You should then only have the system provided background editor thats included
via the system menu include. 

Comment 14 Heiko Adams 2007-03-19 15:44:18 EDT
Thanks, that solved the problem. But I can't remember adding this to my menu
config. AFAIR the only change I made was making the Exit visible.
Comment 15 Kevin Fenzi 2007-03-19 15:47:46 EDT
Yeah, I don't know how it would get added to your local menu without you doing it. 
Perhaps it was carried over from an upgrade or something? 

In any case I will close this bug now. If you spot anything further feel free to
re-open this or file a new bug. 

Thanks for being so patient on tracking it down with me. 

Note You need to log in before you can comment on or make changes to this bug.