Cinnamon desktop support?

Bug #1396989 reported by Lester Carballo Pérez
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Light Display Manager
New
Undecided
Unassigned

Bug Description

Hi. I really don't have experience about D.M.
So, i can not be sure if this problem is more related with Lightdm or with upstart or any other thing.

More users reported a problem here:
http://forums.linuxmint.com/viewtopic.php?f=190&t=158774&p=951093#p951093

Currently i think that cinnamon is not supported on lightdm, possible this occurs because Cinnamon let to use gnome as a way to acquire the session.

Cinnamon 2.0.14 XDG_CURRENT_DESKTOP=GNOME

Cinnamon 2.2.16 XDG_CURRENT_DESKTOP=X-Cinnamon

Sorry if it's too long, but i can only share what i know...

In the case of ubuntu 14.04 the cinnamon session depend of ConsoleKit and a DBus iface... The result it's:

WARNING **: Failed to get session for pid: DBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '7539'

Also if I try to use GetCurrentSession, directly from terminal I get this fail....

dbus-send --system --dest=org.freedesktop.ConsoleKit \
--type=method_call --print-reply --reply-timeout=2000 \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.GetCurrentSession

Error org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '436'

Plase see: https://github.com/linuxmint/cinnamon-settings-daemon/blob/master/plugins/automount

When try to test what happen this appear to be a problem of permission.
When i execute with root permission:

dbus-send --system --dest=org.freedesktop.ConsoleKit \
--type=method_call --print-reply --reply-timeout=2000 \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.GetCurrentSession

Response:
object path "/org/freedesktop/ConsoleKit/Session1"

Finally, i see that XDG_SESSION_COOKIE is not set from normal user and it's set as root user.
So, the problem appear to be in the session start. Consolekit does not start, it's not called.

Thanks for any fix or suggestion...

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Are you running both ConsoleKit and logind?

Revision history for this message
Lester Carballo Pérez (lestcape) wrote :

As default Ubuntu 14.04 have an hybridized way to start the session. So i can not be sure how answer your cuestion... Both are installed in my system like an dependency of ubuntu-desktop.

After session start logind it's not used at all in my system.

The problem that i detected was the impossibility to automount volumes. I see the cinnamon code:
https://github.com/linuxmint/cinnamon-settings-daemon/blob/master/plugins/automount

and this code depend (like need to be) of the session state. They have an a Macro IF to execute the corresponding code of logind or consolekit...
https://github.com/linuxmint/cinnamon-settings-daemon/blob/master/cinnamon-settings-daemon/cinnamon-settings-session.c

#ifdef HAVE_SYSTEMD
use logind

#else
use consolekit

First they asking for logind, but the code of logind is not executed on my system, and then is executed the consolekit code, but this fails (consolekit was not started when the session init).

Yesterday this line appear on the roadmap of cinnamon (apparently after my comment here) like a related problem that was fixed:

- session properties changes not always being applied

but i don't detect any change using lightdm. I decided install mdm to test what happen (it's the mint version), and after the reboot is working. Not occurs the same when i switch to lightdm.

lightdm was tested on 2 ubuntu 14.04 x64 machines one using oracle WM, and mdm in 2 machines with WM, 1 with ubuntu 14.04 x64 and another with the Mint equivalent. Same result.

Thanks for the fast response.

Revision history for this message
Lester Carballo Pérez (lestcape) wrote :

Maybe this help: https://github.com/linuxmint/mdm/search?l=c&q=Cinnamon&type=Code&utf8=%E2%9C%93

test_exec = find_prog ("cinnamon-session");

cinnamon-session instead gnome-session ?

The gnome-session program starts up the GNOME desktop environment. This
command is typically executed by your login manager (either gdm, xdm,
or from your X startup scripts).

Revision history for this message
Lester Carballo Pérez (lestcape) wrote :

This have the same cause of this problem: https://bugs.launchpad.net/ubuntu/+source/cinnamon-session/+bug/1446276
Any way thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.