After reading an e-book about python i have created my first script. The script helps users to make system updates or upgrades without typing the commands, at a press of a keyboard button. Is good for newbies and experienced users.
I agree that it looks great for newbies, but experienced users will probably just find it to be a hassle. Using zypper directly is a lot more flexible and doesn’t require updating a script to be able to do something new.
To make it more useful, I would recommend creating a .desktop file](http://linuxcritic.wordpress.com/2010/04/07/anatomy-of-a-desktop-file/) in /usr/share/applications that launches your script in a terminal. As is, the user would have to double-click on a terminal icon, type in the name “opensuse_CLI_updater”, hit enter, and then close the terminal when they’re done. With a launcher you could simply double-click on a new icon that would pop up a terminal for you, ready to go.
But just one question:
Isn’t the zypper dup function a bit risky for newbies?
Just assuming, someone got the repositories messed up or just some experimental repo by trying around and not knowing on behalf of being noob… :?
zypper will ask, but anyway…
What about adding a warning, a howto or a link to where a howto can be found?
Could be some good practicing for your python.
What’s double-click ?
Something I even eliminated on the win-machine I have to use at work…rotfl!