~ubuntu-branches/ubuntu/quantal/lightdm/quantal

« back to all changes in this revision

Viewing changes to src/lightdm.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell, Robert Ancell, Michael Terry
  • Date: 2012-08-30 10:15:16 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20120830101516-e4y8358adii2wdgl
Tags: 1.3.3-0ubuntu1
[ Robert Ancell ]
* New upstream release:
  - Add a new remote session type. These sessions create a temporary local
    account and authenticate against a remote server. The session is an
    application that accesses that remote session (e.g. VNC, RDP etc)
  - Support multiple simultaneous PAM prompts (LP: #1043593)
  - Set utmp ut_host field to the X display address (LP: #1027760)
  - Correctly reap unused authentication sessions (LP: #990661)
* debian/liblightdm-gobject-1-0.symbols:
  - Updated

[ Michael Terry ]
* debian/patches/06_disable_remote_login.patch:
  - Always return an error when trying to log in to remote sessions,
    until the FFe is granted (which is bug 1040221)

Show diffs side-by-side

added added

removed removed

Lines of Context:
817
817
    gboolean test_mode = FALSE;
818
818
    gchar *pid_path = "/var/run/lightdm.pid";
819
819
    gchar *xsessions_dir = NULL;
 
820
    gchar *remote_sessions_dir = NULL;
820
821
    gchar *xgreeters_dir = NULL;
821
822
    gchar *config_dir;
822
823
    gchar *log_dir = NULL;
843
844
        { "xsessions-dir", 0, 0, G_OPTION_ARG_STRING, &xsessions_dir,
844
845
          /* Help string for command line --xsessions-dir flag */
845
846
          N_("Directory to load X sessions from"), "DIRECTORY" },
 
847
        { "remote-sessions-dir", 0, 0, G_OPTION_ARG_STRING, &remote_sessions_dir,
 
848
          /* Help string for command line --remote-sessions-dir flag */
 
849
          N_("Directory to load remote sessions from"), "DIRECTORY" },
846
850
        { "xgreeters-dir", 0, 0, G_OPTION_ARG_STRING, &xgreeters_dir,
847
851
          /* Help string for command line --xgreeters-dir flag */
848
852
          N_("Directory to load X greeters from"), "DIRECTORY" },
952
956
 
953
957
    /* Always use absolute directories as child processes may run from different locations */
954
958
    xsessions_dir = path_make_absolute (xsessions_dir);
 
959
    remote_sessions_dir = path_make_absolute (remote_sessions_dir);
955
960
    xgreeters_dir = path_make_absolute (xgreeters_dir);
956
961
 
957
962
    /* If not running as root write output to directories we control */
1019
1024
    g_free (default_cache_dir);
1020
1025
    if (!config_has_key (config_get_instance (), "LightDM", "xsessions-directory"))
1021
1026
        config_set_string (config_get_instance (), "LightDM", "xsessions-directory", XSESSIONS_DIR);
 
1027
    if (!config_has_key (config_get_instance (), "LightDM", "remote-sessions-directory"))
 
1028
        config_set_string (config_get_instance (), "LightDM", "remote-sessions-directory", REMOTE_SESSIONS_DIR);
1022
1029
    if (!config_has_key (config_get_instance (), "LightDM", "xgreeters-directory"))
1023
1030
        config_set_string (config_get_instance (), "LightDM", "xgreeters-directory", XGREETERS_DIR);
1024
1031
 
1035
1042
    if (xsessions_dir)
1036
1043
        config_set_string (config_get_instance (), "LightDM", "xsessions-directory", xsessions_dir);
1037
1044
    g_free (xsessions_dir);
 
1045
    if (remote_sessions_dir)
 
1046
        config_set_string (config_get_instance (), "LightDM", "remote-sessions-directory", remote_sessions_dir);
 
1047
    g_free (remote_sessions_dir);
1038
1048
    if (xgreeters_dir)
1039
1049
        config_set_string (config_get_instance (), "LightDM", "xgreeters-directory", xgreeters_dir);
1040
1050
    g_free (xgreeters_dir);