hello world!
分类: LINUX
2012-12-28 09:42:04
The third command prints DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID. We must export these variables. Either manually export the below two variables shown in the output of dbus-launch like this:
$ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Jb433gMQHS,guid=fc14d4bf3d000e38276a5a2200000d38 $ export DBUS_SESSION_BUS_PID=4283Or use the follow command:
$ `dbus-launch | sed "s/^/export /"`Check to see if dconf-service is running and if not, start it like this
$ /usr/lib/dconf/dconf-service & Login background imageOnce session variables have been exported as explained above, you may issue commands to retrieve or set items used by GDM.
The easiest way to changes all the settings is by launching the Configuration Editor gui with the command
$ dconf-editorThe location of each setting is the same as in the command line style of configuration shown below:
The following is the command-line approach to retrieve or set the file name used for GDM's wallpaper.
$ GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/SundownDunes.jpg' $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options 'zoom' ## Possible values: centered, none, scaled, spanned, stretched, wallpaper, zoomAn alternative graphical interface to changing themes (gtk3, icons and cursor), the wallpaper and minor other settings of the GDM login screen, you can install gdm3setup from AUR.
如果出现此类错误:
* (process:2313): CRITICAL *: unable to create '/run/user/mayank/dconf'; dconf will not work properly.
则:
with "env XDG_RUNTIME_DIR=/run/user/gdm" instead of "GSETTINGS_BACKEND=dconf"
eg.
# su - gdm -s /bin/bash Take a look at these two links :
-bash-4.2$ `dbus-launch | sed "s/^/export /"`
-bash-4.2$ env XDG_RUNTIME_DIR=/run/user/gdm gsettings list-recursively org.gnome.desktop.background