You are not logged in.

#1 2009-05-06 22:31:21

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

So I made this cute python "program"

#!/usr/bin/python
# Filename: install.py

from subprocess import call

package = raw_input('Package or group name: ')

call(['sudo', 'pacman', '-S', package])

It's just an interactive installer, I made it to easily install junk straight from my desktop, instead of having to go to the terminal and type everything. Now I just double click on the icon on my desktop, type in the package name and install. I think I'm gonna run with it and make something more out of it. Here's the install instructions.

Copy the code above, paste it in a file with the name install.py. Go into terminal, type:

chmod a+x install.py
./install.py
cp install.py (bin path)/pypacman

then you can make a link to terminal application on the desktop or menu!


Personally, I'd rather be back in Hobbiton.

Offline

#2 2009-05-10 16:26:50

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: So I made this cute python "program"

could add a really simple one line text box simialr to the Alt-F2 box (gmrun)
maybe include the termianl output in that gtk window so it is one self contained program.

i was looking at something similar to this yesterday. Namely the one click install that Suse have.


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#3 2009-05-11 22:46:52

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: So I made this cute python "program"

It's very cute. Makes me want to feed it some C......

But really, it's a good start for a graphical or curses frontend to pacman.

Last edited by uncholowapo (2009-05-11 22:47:44)

Offline

#4 2009-05-11 23:27:21

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: So I made this cute python "program"

A curses frontend to pacman would be good, but please, no gui.  There are some people with no X11.

Last edited by Lexion (2009-05-11 23:27:45)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

Board footer

Powered by FluxBB