Re: [gdm-list] change default behaviour of gdm from gnome to gnome-fallback





On Thu, Jul 5, 2012 at 10:34 AM, magina antimage <magina the antimage 001 gmail com> wrote:


On Fri, Jun 22, 2012 at 12:01 PM, magina antimage <magina the antimage 001 gmail com> wrote:
Hi,
         When i try to run gdm in gnome mode it crashes so i am running it in gnome-fallback mode
but whenever i create a new user by default it sets gdm to run in gnome and not in gnome-fallback so i have to set it into gnome-fallback manually
every time i create a new user...
can anyone tell me is it possible to get gnome-fallback mode by default for every user i create using useradd

thanks,
Regards
Lokesh



I thought these values(gnome or gnome-fallback) should be taken from somewhere ,so i searched in my root and found two files
1./usr/share/glib-2.0/schemas/org.gnome.desktop.session.gschema.xml
2/var/lib/gdm/.config/dconf/user

1.
#cat org.gnome.desktop.session.gschema.xml

<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
  <schema path="/org/gnome/desktop/session/" id="org.gnome.desktop.session">
    <key type="u" name="idle-delay">
      <default>600</default>
      <summary>Time before session is considered idle</summary>
      <description>The number of seconds of inactivity before the session is considered idle.</description>
    </key>
    <key type="s" name="session-name">
      <default>"gnome"</default>
      <summary>Session type</summary>
      <description>The name of the session to use.  Known values are
      "gnome" and "gnome-fallback".</description>
    </key>
  </schema>
</schemalist>


i changed gnome to gnome-fallback

<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
  <schema path="/org/gnome/desktop/session/" id="org.gnome.desktop.session">
    <key type="u" name="idle-delay">
      <default>600</default>
      <summary>Time before session is considered idle</summary>
      <description>The number of seconds of inactivity before the session is considered idle.</description>
    </key>
    <key type="s" name="session-name">
      <default>"gnome-fallback"</default>
      <summary>Session type</summary>
      <description>The name of the session to use.  Known values are
      "gnome" and "gnome-fallback".</description>
    </key>
  </schema>
</schemalist>

2.if looked at /home/user_name/.config/dconf/user behavior when i change session type from gnome to gnome-fallback,
[P.S. its a binary file]
when i open this binary from vi i can see gnome changed to gnome-fallback
umm i thought this file was picked from  /var/lib/gdm/.config/dconf/user
so i performed this
#sed -i s"@gnome@gnome-fallback@g" /var/lib/gdm/.config/dconf/user [gnome or gnome fallback has only one occurance in this binary]

 then i added new user ...but still /home/user_name/.config/dconf/use rbinary contains gnome instead of gnome-fallback


Anyone knows how can i change default behavior of this .dconf/user or from where its picking gnome value


also when i changed default value of schema "/usr/share/glib-2.0/schemas/
org.gnome.desktop.session.gschema.xml"
why i am getting gnome instead of gnome-fallback in
#gsettings list-recursively org.gnome.desktop.session



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]