Bug 26811

Summary: $GNOME_DESKTOP_SESSION_ID is deprecated
Product: Portland Reporter: Pablo Castellano (pablog) <pablo>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pablo Castellano (pablog) 2010-02-28 15:37:11 UTC
The environment variable $GNOME_DESKTOP_SESSION_ID is deprecated and we don't know when it will be removed.

Here:
https://bugzilla.gnome.org/show_bug.cgi?id=542880
some developers suggest other workarounds.
Comment 1 Pablo Castellano (pablog) 2010-02-28 15:38:00 UTC
I forgot to add that it's used in:

libxdg-vfs/libxdg-vfs-client/src/xdg_vfs_client.c:150:	e = getenv ("GNOME_DESKTOP_SESSION_ID");
xdg-utils/tests/include/desktop_environment:24:   if [ ! -z "$GNOME_DESKTOP_SESSION_ID" ]; then
xdg-utils/scripts/xdg-icon-resource:398:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-settings:315:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-copy:221:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-file-dialog:261:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/.#xdg-open.1.39:305:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-desktop-icon:406:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-email:358:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-terminal:300:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-utils-common.in:197:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-desktop-menu:602:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-open:305:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-su:302:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-screensaver:335:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/.#xdg-open.1.40:305:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
xdg-utils/scripts/xdg-mime:427:    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
Comment 2 Rex Dieter 2010-02-28 15:48:16 UTC
Already fixed in cvs, 

2009-10-16 Rex Dieter <rdieter@fedoraproject.org>
    * prefer gvfs-open over gnome-open
    * DE=gnome, if org.gnome.SessionManager exists on dbus

And per downstream report,
https://bugzilla.redhat.com/529287
Comment 3 Pablo Castellano (pablog) 2010-02-28 15:57:51 UTC
You are right ;)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.