LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2006, 10:40 PM   #1
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Rep: Reputation: 15
Help with OpenOffice install


I installed open office, and everything runs correctly, however I want to add it to all user's office menu in KDE, rather than having to go to to opt/openoffice.org2.0/program/soffice to run openoffice. What must I do?
 
Old 02-01-2006, 11:46 PM   #2
MasterPi
Member
 
Registered: Jun 2004
Distribution: Ubuntu Breezy (5.12) and Debian Testing (Sarge)
Posts: 59

Rep: Reputation: 15
Assumming you're using a newish version of KDE, I believe it uses .desktop files for the menu in either /usr/share/applications/ or ~/.local/share/applications/

here's some of my file for writer modified:
Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Terminal=false
Icon=ooo-writer
Type=Application
InitialPreference=2
Categories=Application;Office;X-Red-Hat-Base;X-SuSE-Core-Office;
Exec=/opt/openoffice.org2.0/program/soffice
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;text/rtf;application/vnd.wordperfect;application/wordperfect
Name=OpenOffice.org Writer
Comment=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
Comment[en]=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
StartupNotify=true
I cut out everything but english, if u need the others let me know.

You may need to change the icon field (should work if you've got an icon called ooo-writer in your current or hicolor theme)

Since I used the ones for writer, the mime types are only for writer. Here's a grep of my mime-type fields:
Code:
/usr/share/applications/ooo-base.desktop:MimeType=application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base
/usr/share/applications/ooo-calc.desktop:MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/vnd.stardivision.chart;application/msexcel;application/vnd.ms-excel
/usr/share/applications/ooo-draw.desktop:MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw
/usr/share/applications/ooo-impress.desktop:MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/mspowerpoint;application/vnd.ms-powerpoint
/usr/share/applications/ooo-math.desktop:MimeType=application/vnd.oasis.opendocument.formula;application/vnd.sun.xml.math;application/vnd.stardivision.math
/usr/share/applications/ooo-writer.desktop:MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;text/rtf;application/vnd.wordperfect;application/wordperfect
These are used by Gnome for file associations, I think KDE does the same.

Last edited by MasterPi; 02-01-2006 at 11:47 PM.
 
Old 02-02-2006, 11:02 AM   #3
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
I think I got it. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice install in FC$ ApocalypticDreamz Linux - Software 6 10-24-2005 09:30 PM
THe best way to install OpenOffice shole Linux - Software 7 04-12-2005 03:53 AM
Openoffice install mm3000 Slackware 12 08-02-2004 04:22 AM
Install OpenOffice post Distro install? xrobevansx Linux - Newbie 4 06-15-2004 05:43 AM
need to install OpenOffice devit Linux - Software 10 02-07-2004 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration