Can you su and enter pass in same command
I'm writing I guess what's called a script for system menus in KDE so that I can right click a tarball and have it do it's thing so I don't have to type in all the commands to install. I know that installs can be different from program to program but I havn't seen a ton so I'm willing to use this and go do it the manual way if this doesn't work for a install file
anyways, here's my systemMenu file. It has problems and since I don't really know what I'm doing I could use some general help with it.
[Desktop Entry]
ServiceTypes=application/x-tgz
Actions=install
[Desktop Action install]
Name=Basic Install
Icon=ark
Exec=tar zxf %u
Exec=cd ./%u
Exec=make
Exec=su
Exec=make install
Exec=rm -r %u
I havn't gotten it to work because I can't su and make it install to check it. Oh, and at the end when I tell it to remove the directory can someone tell me if that is correct or not, because I have never used rm before.
|