Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

/opt/dropbox/nautilus

By: a guest on Sep 20th, 2012  |  syntax: Bash  |  size: 0.45 KB  |  views: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. file_manager=nautilus
  4. case "$DESKTOP_SESSION" in
  5.         mate)
  6.                 [[ -f /usr/bin/caja ]] && file_manager=caja
  7.                 ;;
  8.         xfce|xfce4)
  9.                 [[ -f /usr/bin/thunar ]] && file_manager=thunar
  10.                 ;;
  11.         cinnamon)
  12.                 [[ -f /usr/bin/nemo ]] && file_manager=nemo
  13.                 ;;
  14.         kde|kde4)
  15.                 [[ -f /usr/bin/dolphin ]] && file_manager=dolphin
  16.                 ;;
  17.         lxde)
  18.                 [[ -f /usr/bin/pcmanfm ]] && file_manager=pcmanfm
  19.                 ;;
  20.         # others?...
  21. esac
  22.  
  23. shift
  24. exec $file_manager "$@"
  25. exit 0