You are not logged in.
Pages: 1
Hi,
I found mac_cain13's script netswitch 0.4.5 in AUR today. I was looking for something like that for a while now... but I found it was written for gnome (and all it's bloat).
So I've rewritten it using kdialog as the GUI frontend. It works pretty well, with kdesu used to gain root privileges.
There is, however, one slight problem. I wasn't able to force kdialog to return it's value to a bash variable (like PROFILE=`kdialog ........ `), because it froze. Instead I did a small, but rather dirty workaround:
kdialog --title "Menu" --caption "$MSG_TITLE" --icon $ICON --menu "$MSG_CHOOSE" "${profiles[@]}" > /tmp/netswitch.choose
PROFILE=`cat /tmp/netswitch.choose`
rm /tmp/netswitch.choose
I don't know why kdialog fails to work nicely..
Apart from that it all should work just nice. I might post some screenshots if anyone's interested. Any comments? Here's the tarball link:
http://continuity.intelink.pl/~neuro/ne … .0.tar.bz2
PKGBUILD:
# Contributor: Mathijs Kadijk <mkadijk>
# Modified by: Michal Witkowski
pkgname=netswitch
pkgver=0.5.0
pkgrel=1
pkgdesc="A simple netcfg frontend"
url="http://mac-cain13.livejournal.com/tag/netswitch"
depends=('bash' )
makedepends=('')
source=("http://continuity.intelink.pl/~neuro/$pkgname-$pkgver.tar.bz2")
backup=('etc/netswitch.conf')
build()
{
install -D -m644 $startdir/src/$pkgname/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
install -D -m644 $startdir/src/$pkgname/$pkgname.png $startdir/pkg/usr/share/pixmaps/$pkgname.png
install -D -m755 $startdir/src/$pkgname/$pkgname $startdir/pkg/usr/bin/$pkgname
install -D -m644 $startdir/src/$pkgname/$pkgname.conf $startdir/pkg/etc/$pkgname.conf
install -D -m644 $startdir/src/$pkgname/$pkgname.1 $startdir/pkg/usr/man/man1/$pkgname.1
}
Offline
Pages: 1