Changeset 02643f3


Ignore:
Timestamp:
01/28/14 09:05:19 (16 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
1dce35f
Parents:
3db4432
Message:

Add the PCDM_SESSION variable detection to xdg-open for detecting the running DE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-extractoverlay/ports-overlay/usr/local/bin/xdg-open

    r20ddec1 r02643f3  
    311311{ 
    312312  UR_PROCS=`ps -ax -o comm` #Get the current running processes 
    313   #Now scan the running procs for DE-specific indicators 
    314   if [ -n "`echo "${UR_PROCS}" | grep startxfce`" ]; then DE=xfce; 
     313  #Check for the PCDM_SESSION environment variable first 
     314  if [ "${PCDM_SESSION}" = "KDE" ]; then DE=kde; 
     315  elif [ "${PCDM_SESSION}" = "LXDE" ]; then DE=lxde; 
     316  elif [ "${PCDM_SESSION}" = "MATE" ]; then DE=mate; 
     317  elif [ "${PCDM_SESSION}" = "GNOME" ]; then DE=gnome; 
     318  elif [ "${PCDM_SESSION}" = "CINNAMON" ]; then DE=gnome; 
     319  elif [ "${PCDM_SESSION}" = "XFCE" ]; then DE=xfce; 
     320  #otherwise scan the running procs for DE-specific indicators 
     321  elif [ -n "`echo "${UR_PROCS}" | grep startxfce`" ]; then DE=xfce; 
    315322  elif [ -n "`echo "${UR_PROCS}" | grep gnome-session`" ]; then DE=gnome; 
    316323  elif [ -n "`echo "${UR_PROCS}" | grep mate-session`" ]; then DE=mate; 
Note: See TracChangeset for help on using the changeset viewer.