
| Current Path : /home/ift/51_iftlib/intern/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //home/ift/51_iftlib/intern/hilfsskript_anpassen_user.py |
import os,re
for dir in '''
afriemann
cbeville
cc
cgabriel
ddickinson
ddienlin
dschlotz
emeier
gduan
hparfuss
ift
jcui
jfriedrichs
kfessmann
lfocken
lli
nle
nxueshang
rgerungan
rndengang
sdjomo
share
sjain
suschuster
swonneberger
tfries
tjungblut
tliu
tt
vgabriel
xift
xli
xshang
yzhao
zchen
zhwang
anita
rdong
'''.split("\n"):
if os.path.isdir(dir):
if os.path.isdir(dir + "/.config"):
os.system("cp xift/.config/lxqt/panel.conf " + dir + "/.config/lxqt")
os.system("cp xift/.config/pcmanfm-qt/lxqt/*.conf " + dir + "/.config/pcmanfm-qt/lxqt")
else:
os.system("cp -a xift/.config " + dir)
os.system("chown -R " + dir + ":ift " + dir + "/.config")
os.system("cp xift/.bashrc " + dir)
os.system("chown " + dir + ":ift " + dir +"/.bashrc")
os.system("chmod 775 " + dir +"/.bashrc")
if os.path.isfile(dir + "/Desktop/user-home.desktop"):
os.system("cp xift/Desktop/* " + dir + "/Desktop")
text = open(dir + "/Desktop/user-home.desktop").read()
text = re.sub("xift",dir,text)
open(dir + "/Desktop/user-home.desktop","w").write(text)
os.system("chown " + dir + ":ift " + dir +"/Desktop")
os.system("chmod 775 " + dir +"/Desktop")