Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xfce 4.6 and cxoffice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chaonis
n00b
n00b


Joined: 05 Apr 2005
Posts: 36

PostPosted: Thu May 14, 2009 12:33 am    Post subject: Xfce 4.6 and cxoffice Reply with quote

By default, crossover pro 7.10 menus don't show up in xfce4.6 desktop. To add the menu back on:
1) install the windows program;
2) # cp /etc/xdg/menus/xfce-applications.menu ~/.config/menus/
3) copy the <Menu> block in ~/.config/menus/xfce-applications-merged/*.menu into ~/.config/menus/xfce-applications.menu.
4) restart xfdesktop by:
Code:
# xfdesktop --reload

if doesn't work, do:
Code:
killall -HUP xfdesktop

or just log out and log back in.

For example:
Code:
# cp /etc/xdg/menus/xfce-applications.menu ~/.config/menus/
#
# cat ~/.config/menus/xfce-applications.menu
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
    <Name>Xfce</Name>
   
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
   
    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>

    <Layout>
        <Filename>xfce4-run-program.desktop</Filename>
        <Separator/>
        <Filename>xfce4-term.desktop</Filename>
        <Filename>xfce4-file-manager.desktop</Filename>
        <Filename>xfce4-web-browser.desktop</Filename>
        <Separator/>
        <Menuname>Settings</Menuname>
        <Separator/>
        <Merge type="all"/>
        <Separator/>
        <Filename>xfce4-help.desktop</Filename>
        <Filename>xfce4-about-xfce.desktop</Filename>
        <Filename>xfce4-logout.desktop</Filename>
    </Layout>
......
    <Menu>
        <Name>Other</Name>
        <Directory>xfce-other.directory</Directory>
        <OnlyUnallocated/>
        <Include>
            <All/>
        </Include>
    </Menu>
</Menu>

And after installing Office 2003:
Code:
# ls -l ~/.config/menus/xfce-applications-merged/
total 8
-rw-r--r-- 1 maddog maddog  814 2009-05-08 14:11 cxmenu-cxoffice-0.menu
-rw-r----- 1 maddog maddog 2509 2009-05-13 16:40 cxmenu-cxoffice-b389cef5-089a-41f0-33ae-c425ed3279e2.menu
# cat ~/.config/menus/xfce-applications-merged/cxmenu-cxoffice-0.menu
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
  <Name>Xfce</Name>
  <Menu>
    <Name>CrossOver</Name>
    <Directory>.directory</Directory>
    <DirectoryDir>/home/maddog/.cxoffice/desktopdata/cxoffice-0/cxmenu/xdg-xfce-applications/CrossOver</DirectoryDir>
    <AppDir>/home/maddog/.cxoffice/desktopdata/cxoffice-0/cxmenu/xdg-xfce-applications/CrossOver</AppDir>
    <Include>
      <Filename>Install+Windows+Software.desktop</Filename>
      <Filename>Configuration.desktop</Filename>
      <Filename>Documentation.desktop</Filename>
      <Filename>Terminate+Windows+Applications.desktop</Filename>
      <Filename>Run+a+Windows+Command.desktop</Filename>
      <Filename>Uninstall.desktop</Filename>
    </Include>
  </Menu>
</Menu>
#
# cat ~/.config/menus/xfce-applications-merged/cxmenu-cxoffice-b389cef5-089a-41f0-33ae-c425ed3279e2.menu
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
  <Name>Xfce</Name>
  <Menu>
    <Name>Windows Applications</Name>
    <Directory>.directory</Directory>
......
  </Menu>
</Menu>

After the modification:
Code:
# diff -u /etc/xdg/menus/xfce-applications.menu  ~/.config/menus/xfce-applications.menu
--- /etc/xdg/menus/xfce-applications.menu       2009-03-02 00:09:57.000000000 -0800
+++ /home/maddog/.config/menus/xfce-applications.menu   2009-05-13 16:46:22.000000000 -0700
@@ -136,5 +136,60 @@
             <All/>
         </Include>
     </Menu>

+    <Menu>
+    <Name>CrossOver</Name>
+    <Directory>.directory</Directory>
+    <DirectoryDir>/home/maddog/.cxoffice/desktopdata/cxoffice-0/cxmenu/xdg-xfce-applications/CrossOver</DirectoryDir>
+    <AppDir>/home/maddog/.cxoffice/desktopdata/cxoffice-0/cxmenu/xdg-xfce-applications/CrossOver</AppDir>
+    <Include>
+      <Filename>Install+Windows+Software.desktop</Filename>
+      <Filename>Configuration.desktop</Filename>
+      <Filename>Documentation.desktop</Filename>
+      <Filename>Terminate+Windows+Applications.desktop</Filename>
+      <Filename>Run+a+Windows+Command.desktop</Filename>
+      <Filename>Uninstall.desktop</Filename>
+    </Include>
+  </Menu>
+
+  <Menu>
+    <Name>Windows Applications</Name>
+    <Directory>.directory</Directory>
+    <DirectoryDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications</DirectoryDir>
+    <AppDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications</AppDir>
+    <Include>
+      <Filename>New+Office+Document.desktop</Filename>
+      <Filename>Open+Office+Document.desktop</Filename>
+    </Include>
+    <Menu>
+      <Name>Microsoft Office</Name>
+      <Directory>.directory</Directory>
+      <DirectoryDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications/Microsoft+Office</DirectoryDir>
+      <AppDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications/Microsoft+Office</AppDir>
+      <Include>
+        <Filename>Microsoft+Office+Excel+2003.desktop</Filename>
+        <Filename>Microsoft+Office+InfoPath+2003.desktop</Filename>
+        <Filename>Microsoft+Office+Outlook+2003.desktop</Filename>
+        <Filename>Microsoft+Office+PowerPoint+2003.desktop</Filename>
+        <Filename>Microsoft+Office+Publisher+2003.desktop</Filename>
+        <Filename>Microsoft+Office+Word+2003.desktop</Filename>
+      </Include>
+      <Menu>
+        <Name>Microsoft Office Tools</Name>
+        <Directory>.directory</Directory>
+        <DirectoryDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications/Microsoft+Office/Microsoft+Office+Tools</DirectoryDir>
+        <AppDir>/home/maddog/.cxoffice/win2000/desktopdata/cxmenu/xdg-xfce-applications/Windows+Applications/Microsoft+Office/Microsoft+Office+Tools</AppDir>
+        <Include>
+          <Filename>Digital+Certificate+for+VBA+Projects.desktop</Filename>
+          <Filename>Microsoft+Clip+Organizer.desktop</Filename>
+          <Filename>Microsoft+Office+2003+Language+Settings.desktop</Filename>
+          <Filename>Microsoft+Office+2003+Save+My+Settings+Wizard.desktop</Filename>
+          <Filename>Microsoft+Office+Application+Recovery.desktop</Filename>
+          <Filename>Microsoft+Office+Document+Imaging.desktop</Filename>
+          <Filename>Microsoft+Office+Document+Scanning.desktop</Filename>
+          <Filename>Microsoft+Office+Picture+Manager.desktop</Filename>
+        </Include>
+      </Menu>
+    </Menu>
+  </Menu>
 </Menu>


By the way, when you are at this, might as well tidy up the menu a little bit by modifying the file: ~/.config/menus/xfce-applications.menu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum