Re: F23: KDE menu launch SSH inside konsole fails after update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux