You are not logged in.

#1 2015-09-10 14:30:04

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

(SOLVED) New programs not providing .config for user

Installed libreoffice-still and thunar, but they did not create files in /home/user-name/.config.  Thus I can only load and use them as root.

$ uname -r:

4.1.6-1-ARCH

$ ls .config:

openbox
tint2

that's all in .config, though both programs are installed:

$ pacman -Ss libreoffice-still
extra/libreoffice-still 4.4.5-2 [installed]
    LibreOffice maintenance branch
extra/libreoffice-still-af 4.4.5-2
    Afrikaans language pack for LibreOffice still

(plus another 100+ language packs)

$ pacman -Ss thunar
extra/thunar 1.6.10-2 (xfce4) [installed]
    Modern file manager for Xfce
extra/thunar-archive-plugin 0.3.1-5 (xfce4-goodies)
    Create and extract archives in Thunar
extra/thunar-media-tags-plugin 0.2.1-2 (xfce4-goodies)
    Adds special features for media files to the Thunar File Manager
extra/thunar-volman 0.8.1-1 (xfce4)
    Automatic management of removeable devices in Thunar

Last edited by hilltownboy (2015-09-11 23:56:16)

Offline

#2 2015-09-10 14:38:03

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: (SOLVED) New programs not providing .config for user

hilltownboy wrote:

Installed libreoffice-still and thunar, but they did not create files in /home/user-name/.config.  Thus I can only load and use them as root.

Why "thus"? Do they actually refuse to start, screaming at you about missing config files? I don't use thunar, but I've never seen libreoffice do that. If they fail to start without specifically mentioning config files, let's not jump to conclusions about the cause of the problem.

Most programs start just fine without a configuration file (sometimes they create one on the first run) and if they don't, they usually provide a default/example config that you can copy to your home directory. pacman should never mess with your home.

Last edited by Raynman (2015-09-10 14:40:01)

Offline

#3 2015-09-10 14:42:48

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: (SOLVED) New programs not providing .config for user

I just checked on my system and libreoffice-fresh has an entry here. Did you start the program at least once? As for thunar, that stores its setting in a Xconf channel [1].

[1] http://docs.xfce.org/xfce/thunar/faq#wh … references

EDIT: Missed the "Thus" statement Raynman pointed out. Raynman is right and I'm not sure how you got to this conclusion without trying to start the programs at least once.

Last edited by runical (2015-09-10 14:44:50)

Offline

#4 2015-09-10 14:47:56

torors
Member
Registered: 2012-09-28
Posts: 106

Re: (SOLVED) New programs not providing .config for user

I'm also using openbox and tint2. I have ~/.config/Thunar and ~./config/libreoffice. I think those directories was created the first time I started the programs, but I don't know.

Offline

#5 2015-09-10 16:24:13

niceman
Member
Registered: 2015-08-31
Posts: 55

Re: (SOLVED) New programs not providing .config for user

hmm Well I have libreoffice-fresh and found its folder in .config. 

If you were newbie to linux then know that most programs create their configuration files on the first run(they don't necessarily create it after the installation) and some programs run without them(Xorg for example doesn't need 20-nvidia.conf file to work correctly but generating it may save him some time). 

So run libreoffice with your regular user, if a message appears saying "failed to create configuration files" then we have an issue.

Last edited by niceman (2015-09-10 16:25:44)

Offline

#6 2015-09-10 16:51:47

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: (SOLVED) New programs not providing .config for user

Applications should never create config files in user directories at install time. They shouldn't do anything in the user directories at install time.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#7 2015-09-10 19:50:50

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: (SOLVED) New programs not providing .config for user

Running libreoffice as regular user, the message I get is

The application cannot be started
User installation could not be completed

Offline

#8 2015-09-10 19:53:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: (SOLVED) New programs not providing .config for user

What are the permissions on your home folder, ~/.config folder, and (if it exists) ~/.config/libreoffice folder?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#9 2015-09-10 20:30:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: (SOLVED) New programs not providing .config for user

If nothing odd shows up in the folder permissions, the output of `strace loffice` would be helpful.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2015-09-10 21:17:06

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: (SOLVED) New programs not providing .config for user

Offline

#11 2015-09-11 15:58:52

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: (SOLVED) New programs not providing .config for user

WorMzy: Permissions of .config:

drwxr-xr-x  4 root   root       4096 Jul  6 12:25 .config

Permissions in .config

$ la .config
total 16
drwxr-xr-x 4 root   root  4096 Jul  6 12:25 .
drwx------ 9 norman users 4096 Sep 11 08:34 ..
drwxr-xr-x 2 root   root  4096 Jul  5 21:09 openbox
drwxr-xr-x 2 root   root  4096 Jul  6 12:25 tint2

HoaS: That reference as far as I can tell does not apply to a missing .config/libreoffice file

Trilby: I was not able to copy or to redirect all or any part of 'strace loffice".  While long, it flashed by almost instantly and immediately opened libreoffice.  The only
warning that I recognized was

Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx

Perhaps if I knew what to look for in the trace I coiuld find the problem.

Your suggestions inspired me to look at my applications menu. It is not configured to bring up libreoffice but rather libreoffice-calc and libreoffice-writer.  On my second-to-last upgrade I replaced those with libreoffice-still.  That's when my trouble started.

But I also have a keybinding that should bring up libreoffice.  It only brings up the "cannot be started" message.

From .config/rc.xml
 <keybind key="W-o">
    <action name="Execute">
      <startupnotify>
        <enabled>true</enabled>
        <name>office</name>
      </startupnotify>
      <command>loffice</command>
    </action>
  </keybind>

Offline

#12 2015-09-11 16:18:53

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: (SOLVED) New programs not providing .config for user

hilltownboy wrote:

WorMzy: Permissions of .config:

drwxr-xr-x  4 root   root       4096 Jul  6 12:25 .config

Permissions in .config

$ la .config
total 16
drwxr-xr-x 4 root   root  4096 Jul  6 12:25 .
drwx------ 9 norman users 4096 Sep 11 08:34 ..
drwxr-xr-x 2 root   root  4096 Jul  5 21:09 openbox
drwxr-xr-x 2 root   root  4096 Jul  6 12:25 tint2

Your .config directory and contents are owned by root:root, your normal user do not have permission to write to the directory.
Assuming your normal user is norman and group is users try:

chown norman:users ~/.config

with sudo, you should also fix ownership on the .config contents.

Offline

#13 2015-09-11 16:34:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: (SOLVED) New programs not providing .config for user

Tutti wrote:
chown norman:users ~/.config

with sudo, you should also fix ownership on the .config contents.

Or just do it all at once:

sudo chown -R norman:user ~/.config

And, @OP, stop running X11 applications as root.  That is the cause of the problem.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2015-09-11 23:55:02

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: (SOLVED) New programs not providing .config for user

Thank you, Moderators, your help is truly appreciated.  I've been using linux exclusively for 10 years (letters, documents, spreadsheets, internet and email) but I guess I'll always be a newbie.  The solution seems so simple when you know how.

It's a mystery to me why .config changed to root, but I'll mark this solved.  Here's a backup of my .config from some time before the problem occurred.

$ la .config
total 48
drwxr-xr-x 2 norman users 4096 Sep  2  2013 fontconfig
drwx------ 2 norman users 4096 Nov  7  2014 gtk-2.0
drwx------ 2 norman users 4096 Sep 11  2013 gtk-3.0
drwx------ 2 norman users 4096 Aug 22  2013 leafpad
drwxr-xr-x 3 norman users 4096 Feb 20  2014 libreoffice
-rw-r--r-- 1 norman users  257 Nov 15  2014 mimeapps.list
drwxr-xr-x 2 norman users 4096 Jul 30  2014 openbox
drwx------ 2 norman users 4096 Aug 22  2014 spacefm
drwx------ 2 norman users 4096 Aug 20  2013 Thunar
drwxr-xr-x 2 norman users 4096 Mar  3  2014 tint2
drwx------ 2 norman users 4096 Nov 13  2013 viewnior
drwxr-xr-x 3 norman users 4096 Aug 20  2013 xfce4

Offline

#15 2015-09-11 23:58:46

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: (SOLVED) New programs not providing .config for user

I think its a bit unfair to single out mods for thanks. This was a community effort.

Please remember to mark your thread as solved by editing the first post and prepending [solved] to the title.

EDIT: You already marked it solved. I'm slow today. neutral

Last edited by WorMzy (2015-09-12 00:01:38)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#16 2015-09-12 00:46:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: (SOLVED) New programs not providing .config for user

Trilby wrote:

stop running X11 applications as root.  That is the cause of the problem.

hilltownboy wrote:

It's a mystery to me why .config changed to root

Some days I wonder why I bother responding at all.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#17 2015-09-12 18:11:35

snakeroot
Member
Registered: 2012-10-06
Posts: 164

Re: (SOLVED) New programs not providing .config for user

Trilby wrote:

Some days I wonder why I bother responding at all.

So all of us lurking in the thread will learn something. Seriously, thanks for all you do in these forums.

Last edited by snakeroot (2015-09-12 18:13:00)

Offline

#18 2015-09-12 18:27:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: (SOLVED) New programs not providing .config for user

Thank you snakeroot.  Perhaps I was a bit tactless in my previous post, my appologies to hilltownboy and the community if I was - the quoted exchange just confuses me.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#19 2015-09-14 14:27:41

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: (SOLVED) New programs not providing .config for user

No apologies needed for your superb contribution to the Arch community.

Offline

#20 2015-09-16 12:20:17

niceman
Member
Registered: 2015-08-31
Posts: 55

Re: (SOLVED) New programs not providing .config for user

hilltownboy wrote:

The only warning that I recognized was

Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx

Despite that your problem is solved this warning means you don't have java installed, As I recall libreoffice is able to work without java but you may encounter problems with some extensions.

Last edited by niceman (2015-09-16 12:20:35)

Offline

Board footer

Powered by FluxBB