On Thursday 13 October 2016 10:05:56 Gary Stainburn wrote:
> Unfortunately, I cannot convert this into a usable solution in the KDE menu
> Editor

I've been totally unable to get this working properly within KDE Menu Editor.

Instead I've had to modify my root BASH script to cope.  Not pretty, but here 
it is in case anyone else wants it.

#!/bin/bash

user=root
kons=''
ssh=`which ssh`
while [[ "$1" =~ ^-.* ]]; do
  if [ "$1" == "-u" ]; then
    user=$2
    shift
    shift
  fi
  if [ "$1" == '-k' ]; then
    kons='y'
    shift
  fi
# echo remainder $*
done

if [ "$1" == "" ]; then
  host=127.0.0.1
else
  host=`shift`
fi

if [ -z "$kons" ]; then
  $ssh -Y -C -l $user $host $*
else
  konsole -e "$ssh -Y -C -l $user $host $*"
fi
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to