Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] MATE works only from GDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Sun Jun 22, 2014 5:09 pm    Post subject: [SOLVED] MATE works only from GDM Reply with quote

Hello,

I wanted to try MATE desktop so I installed it
but when I run it from startx (with proper .xinitrc entries)
or LXDM or KDM

the 'Places' button doesn't open anything... :?


The only good launch is when I run it from GDM (GDM2 in my case)
_________________
cogito ergo sum


Last edited by Oniryczny on Fri Jul 18, 2014 3:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
compilator
n00b
n00b


Joined: 22 Feb 2014
Posts: 4

PostPosted: Tue Jun 24, 2014 6:52 am    Post subject: Reply with quote

show your .xinitrc
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Tue Jun 24, 2014 8:57 am    Post subject: Reply with quote

Code:

$ cat /home/onir/.xinitrc
#export XDG_MENU_PREFIX=gnome-
#exec gnome-session

#exec ck-launch-session dbus-launch startlxde
exec ck-launch-session dbus-launch mate-session

_________________
cogito ergo sum
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Tue Jul 15, 2014 3:23 am    Post subject: Reply with quote

Somebody help?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Jul 15, 2014 11:13 am    Post subject: Reply with quote

Can you get MATE to start an xterm somehow? (even some sort of autostart facility?) My first guess was going to be the ck-launch-session thing, but you've obviously done that. Simply getting an xterm will allow you to do the next debug suggestion. Since the gentoo forums search is a bit limited, I would suggest at google: "site:forums.gentoo.org ck-launch-session" because I've seen discussions like this before.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Tue Jul 15, 2014 11:33 am    Post subject: Reply with quote

launch xterm from MATE panel menu?
Sure I can...
_________________
cogito ergo sum
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Jul 15, 2014 11:49 am    Post subject: Reply with quote

One suggestion might then be to launch MATE from one of the other login managers, get to an xterm, and "env >notGdm.env.lst". Then launch MATE from gdm, get to an xterm that same way, and "env >gdm.env.lst". Compare the two.

This from someone who has never used MATE, but is congnizant that I may need to move my wife from xfce one of these days if it becomes systemd-encumbered.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 646

PostPosted: Tue Jul 15, 2014 1:33 pm    Post subject: Reply with quote

MATE starts fine via startx for me (no login manager installed at all).

My .xinitrc has a lot of cruft in it, as it has stuff commented out from the GNOME 1.4 with enlightenment days (removed for this), so not all of this is probably relevant, but if it helps you isolate your problem...

Code:

#!/bin/bash
export GDK_USE_XFT=1
export XDG_MENU_PREFIX=gnome-

#work around for nvidia OpenGL bug with xorg 1.15
xcompmgr -n &

#start mailbox monitor
gbuffy &

#start xscreensaver
xscreensaver -nosplash &

exec ck-launch-session mate-session
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Tue Jul 15, 2014 7:34 pm    Post subject: Reply with quote

Sorry but I don't understand... env >notGdm.env.lst / env >gdm.env.lst ?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Jul 15, 2014 8:34 pm    Post subject: Reply with quote

The "env" command will print out your complete environment, I'm just redirecting it into a file.

Since MATE works from GDM and it doesn't without GDM, chances are that the difference is in the environment. Take the 2 files and diff them. Something might turn up.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Wed Jul 16, 2014 4:43 am    Post subject: Reply with quote

Code:
$ diff gdm.env.lst notGdm.env.lst
3,4c3
< SSH_AGENT_PID=4317
< GPG_AGENT_INFO=/home/onir/.cache/keyring-8ta42z/gpg:0:1
---
> GPG_AGENT_INFO=/home/onir/.cache/keyring-EmYsdc/gpg:0:1
7,8c6
< XDG_MENU_PREFIX=mate-
< XDG_SESSION_COOKIE=3f542eb69aa307097c85542a50f6605e-1405484977.806587-1467597529
---
> XDG_SESSION_COOKIE=3f542eb69aa307097c85542a50f6605e-1405483717.104941-1215171879
10,11c8,10
< WINDOWID=37748766
< GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-8ta42z
---
> WINDOWID=35651614
> HUSHLOGIN=FALSE
> GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-EmYsdc
18,20c17,18
< SSH_AUTH_SOCK=/home/onir/.cache/keyring-8ta42z/ssh
< SESSION_MANAGER=local/M5A99X:@/tmp/.ICE-unix/4289,unix/M5A99X:/tmp/.ICE-unix/4289
< USERNAME=onir
---
> SSH_AUTH_SOCK=/home/onir/.cache/keyring-EmYsdc/ssh
> SESSION_MANAGER=local/M5A99X:@/tmp/.ICE-unix/3550,unix/M5A99X:/tmp/.ICE-unix/3550
25,26c23
< DESKTOP_SESSION=mate
< GDM_XSERVER_LOCATION=local
---
> MAIL=/var/mail/onir
31,33c28,29
< GNOME_KEYRING_PID=4325
< LANG=pl_PL.UTF-8
< GDM_LANG=pl_PL.UTF-8
---
> GNOME_KEYRING_PID=3562
> LANG=pl_PL.utf8
36d31
< GDMSESSION=mate
39c34
< SHLVL=1
---
> SHLVL=3
43,44c38,39
< DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-iA7AWOdrAF,guid=e9facae91ce270f4d4df3eec53c5ffb2
< XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/usr/share/gdm
---
> XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-0uvd9q5os7,guid=930e94d744f5c9620fd117f753c5fac5
49a45
> RUBYOPT=-rauto_gem
52d47
< RUBYOPT=-rauto_gem
54d48
< COLORTERM=mate-terminal
55a50
> COLORTERM=mate-terminal
$

_________________
cogito ergo sum
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Wed Jul 16, 2014 7:03 am    Post subject: Reply with quote

Is your dbus started?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Jul 16, 2014 12:17 pm    Post subject: Reply with quote

Looks to me as if he's got dbus started. I took his diff output and condensed/reformatted it. The lines are very long, so I don't know how it's going to show up here. I've taken things that are obviously unique cookies and shortened them, just to limit the line length. At any rate, I believe I see 2 possibilities...
Code:

Present both ways with same or arbitrary values
< COLORTERM=mate-terminal                                                  > COLORTERM=mate-terminal
< DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-NNN,guid=NNN            > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-NNN,guid=NNN
< GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-8ta42z                   > GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-EmYsdc
< GNOME_KEYRING_PID=4325                                                   > GNOME_KEYRING_PID=3562
< GPG_AGENT_INFO=/home/onir/.cache/keyring-8ta42z/gpg:0:1                  > GPG_AGENT_INFO=/home/onir/.cache/keyring-EmYsdc/gpg:0:1
< LANG=pl_PL.UTF-8                                                         > LANG=pl_PL.utf8       
< RUBYOPT=-rauto_gem                                                       > RUBYOPT=-rauto_gem
< SESSION_MANAGER=NNN,NNN                                                  > SESSION_MANAGERNNN,NNN
< SSH_AUTH_SOCK=/home/onir/.cache/keyring-8ta42z/ssh                       > SSH_AUTH_SOCK=/home/onir/.cache/keyring-EmYsdc/ssh                               
< WINDOWID=37748766                                                        > WINDOWID=35651614
< XDG_SESSION_COOKIE=NNN                                                   > XDG_SESSION_COOKIE=NNN
---
Present both ways with different values
< SHLVL=1                                                                  > SHLVL=3
< XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/usr/share/gdm > XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm                                         
---
Present for gdm only
< DESKTOP_SESSION=mate
< GDMSESSION=mate
< GDM_LANG=pl_PL.UTF-8
< GDM_XSERVER_LOCATION=local
< SSH_AGENT_PID=4317
< USERNAME=onir
< XDG_MENU_PREFIX=mate-
---
Present for non-gdm only
> HUSHLOGIN=FALSE
> MAIL=/var/mail/onir


First, the XDG_DATA_DIRS value for using gdm has "/usr/share/mate" as the first path entry, while it's missing in the non-gdm startup. Second, for gdm "XDG_MENU_PREFIX=mate-" is present, while it's missing for non-gdm. I wonder if it's possible to fudge either/both of these in your startup script prior to starting MATE.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Wed Jul 16, 2014 4:28 pm    Post subject: Reply with quote

    XDG_MENU_PREFIX=mate-

is something similar as I had used with GNOME2
so I will set it in my .xinitrc file

as for second tging... How to set XDG_DATA_DIRS?
I only know that I can do it by EXPORT... but it will be set only for current session...


And YES, dbus is added to my startup :)
_________________
cogito ergo sum
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Jul 16, 2014 5:08 pm    Post subject: Reply with quote

Oniryczny wrote:
    XDG_MENU_PREFIX=mate-

is something similar as I had used with GNOME2
so I will set it in my .xinitrc file

as for second tging... How to set XDG_DATA_DIRS?
I only know that I can do it by EXPORT... but it will be set only for current session...

current session and its children - which is why I suggested adding it to your startup script.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Thu Jul 17, 2014 5:00 pm    Post subject: Reply with quote

now it looks:
Code:
$ diff gdm.env.lst notGdm.env.lst
3,4c3
< SSH_AGENT_PID=3905
< GPG_AGENT_INFO=/home/onir/.cache/keyring-jlEiv4/gpg:0:1
---
> GPG_AGENT_INFO=/home/onir/.cache/keyring-AXzVxW/gpg:0:1
8c7
< XDG_SESSION_COOKIE=3f542eb69aa307097c85542a50f6605e-1405616243.409241-1782760641
---
> XDG_SESSION_COOKIE=3f542eb69aa307097c85542a50f6605e-1405615885.814675-793369508
10,11c9,11
< WINDOWID=37748766
< GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-jlEiv4
---
> WINDOWID=33554462
> HUSHLOGIN=FALSE
> GNOME_KEYRING_CONTROL=/home/onir/.cache/keyring-AXzVxW
18,20c18,19
< SSH_AUTH_SOCK=/home/onir/.cache/keyring-jlEiv4/ssh
< SESSION_MANAGER=local/M5A99X:@/tmp/.ICE-unix/3877,unix/M5A99X:/tmp/.ICE-unix/3877
< USERNAME=onir
---
> SSH_AUTH_SOCK=/home/onir/.cache/keyring-AXzVxW/ssh
> SESSION_MANAGER=local/M5A99X:@/tmp/.ICE-unix/3408,unix/M5A99X:/tmp/.ICE-unix/3408
25,26c24
< DESKTOP_SESSION=mate
< GDM_XSERVER_LOCATION=local
---
> MAIL=/var/mail/onir
31,33c29,30
< GNOME_KEYRING_PID=3913
< LANG=pl_PL.UTF-8
< GDM_LANG=pl_PL.UTF-8
---
> GNOME_KEYRING_PID=3420
> LANG=pl_PL.utf8
36d32
< GDMSESSION=mate
39c35
< SHLVL=1
---
> SHLVL=3
43,44c39,40
< DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dafpOgYczj,guid=d0b16548a36b1f00df93e1ac53c80073
< XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/usr/share/gdm
---
> XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yABhvysQET,guid=d04e2a75aacee28334e0d70653c7ff0d
49a46
> RUBYOPT=-rauto_gem
52d48
< RUBYOPT=-rauto_gem
54d49
< COLORTERM=mate-terminal
55a51
> COLORTERM=mate-terminal
$
Code:

$ cat .xinitrc
/usr/bin/numlockx on

#export XDG_MENU_PREFIX=gnome-
export XDG_MENU_PREFIX=mate-

#exec gnome-session

#exec ck-launch-session dbus-launch startlxde
exec ck-launch-session dbus-launch mate-session
$
and MATE still does not work...
_________________
cogito ergo sum
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Fri Jul 18, 2014 1:09 pm    Post subject: Reply with quote

Try also setting:
Code:
export XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/usr/share/gdm

before starting mate. In your previous diff, the presence of "/usr/share/mate" in that string was another difference.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Fri Jul 18, 2014 3:14 pm    Post subject: Reply with quote

GREAT!

You did it :)


I'm just too stupid to figure it out myself :P
_________________
cogito ergo sum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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