Changeset db60a53


Ignore:
Timestamp:
11/28/13 08:21:42 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
4f9718b, 20ddec1
Parents:
3359ccf
Message:

Add MATE detection to the xdg-open script

File:
1 edited

Legend:

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

    re66bf9e rdb60a53  
    314314  if [ -n "`echo "${UR_PROCS}" | grep startxfce`" ]; then DE=xfce; 
    315315  elif [ -n "`echo "${UR_PROCS}" | grep gnome-session`" ]; then DE=gnome; 
     316  elif [ -n "`echo "${UR_PROCS}" | grep mate-session`" ]; then DE=mate; 
    316317  elif [ -n "`echo "${UR_PROCS}" | grep lxsession`" ]; then DE=lxde; 
    317318  elif [ -n "`echo "${UR_PROCS}" | grep kuiserver`" ]; then DE=kde; 
     
    356357open_kde() 
    357358{ 
    358  
    359     if kioclient -v 2>/dev/null 1>&2; then 
    360         kioclient exec "$1" 
     359    if kde-open -v 2>/dev/null 1>&2; then 
     360        kde-open "$1" 
    361361    else 
    362362        if [ x"$KDE_SESSION_VERSION" = x"4" ]; then 
     
    399399        exit_failure_operation_failed 
    400400    fi 
     401} 
     402 
     403open_mate() 
     404{ 
     405  gvfs-open "$1" 
     406 
     407  if [ $? -eq 0 ]; then 
     408       exit_success 
     409  else 
     410       exit_failure_operation_failed 
     411  fi 
    401412} 
    402413 
     
    558569    ;; 
    559570 
     571    mate) 
     572    open_mate "$url" 
     573    ;; 
     574 
    560575    xfce) 
    561576    open_xfce "$url" 
Note: See TracChangeset for help on using the changeset viewer.