Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using Linux Mint 14 - Nadia as my Operating System.

The biggest inconvenience right now is not being able to open Libreoffice as a normal user or simply by just double clicking it. Every time I have to run it as root .

$sudo libreoffice3.6 

Even to open a simple document, I have to open do it by the terminal itself

$sudo libreoffice3.6 document.doc

Here is the error messages I get if I try to open it without being root.

$ libreoffice3.6
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed! 
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Is there anyway to get around this? -------EDIT--------

Output of ls -l $(which libreoffice3.6)`

$ ls -l $(which libreoffice3.6)
lrwxrwxrwx 1 root root 35 Nov 28 15:23 /usr/bin/libreoffice3.6 -> /opt/libreoffice3.6/program/soffice
share|improve this question
1  
As root user you run libreoffice. Why do you run libreoffice3.6 with your user instead? Could you add the output of ls -l $(which libreoffice) and ls -l $(which libreoffice3.6)? – jaume Mar 12 '13 at 7:34
    
@jaume , sorry about that , it was a typo it is ibreoffice3.6 with both normal and root user – Barath Bushan Mar 12 '13 at 7:38
    
@jaume , i have added output of ls -l $(which libreoffice3.6) – Barath Bushan Mar 12 '13 at 7:42
up vote 8 down vote accepted

Perhaps you have the same problem as this guy did.

Make sure your user owns ~/.config and everything in it.

This should do it:

sudo chown -R --reference="$HOME" ~/.config

It'll change everything in that directory to have the same owner and group as your home directory, which should have the proper values.

share|improve this answer
    
perfect answer , thank you !! – Barath Bushan Mar 13 '13 at 2:20

It looks like your username is not identified by linux to have enough privilege to run commands. A few things you should check like:

Make sure you are in sudo group with this command.

$ getent group sudo

It should show output as sudo:x:27:fayad

If you are not in it add the username with

$ sudo gpasswd -a <user> sudo

Crosscheck your /etc/sudoers by opening the file and confirming it has the following lines.

# Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

share|improve this answer
    
after running getent group sudo , i got sudo:x:27:barath , which matches , what you posted. and even the /etc/sudoers file is exactly in place , as you have specified... – Barath Bushan Mar 12 '13 at 17:54
    
Okay, do you get the same results with other applications too? You could also try uninstalling Libreoffice using synaptic and doing a fresh install to see if its the same. – paintbox Mar 12 '13 at 18:39
1  
the other answer fixed it ,thanks for your help !! – Barath Bushan Mar 13 '13 at 2:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .