Package Search
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
» You aren't logged in, login or registerOnline: No members and 6 guests | Time: 18:31
how to run a cmd in a xml-file as normal user?
paldo Support Forum    paldo    General Support
Reply Reply   Subscribe Topic Subscribe Topic
2 posts found.
 how to run a cmd in a xml-file as normal user?
Posts: 1187
Registered: 2006-11-23
I need to run a cmd in a xml as normal user. How to do that using upkg-build?

Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="thunar-thumbnailers">
<description>Thunar archive plugin</description>
<release version="0.2494" revision="1" branch="testing">
<dep name="Thunar"/>
<dep name="ImageMagick"/>
<dep name="tetex"/>
<archive name="thunar-thumbnailers-$VERSION">
<cmd>sh --prefix=/usr</cmd>
<cmd>make -j 2</cmd>
<cmd>make install</cmd>
<!-- run the next command as normal user -->

Ctrl-D will switch to normal user mode but how to do it during a upkg-build-session?
Profile   Private Message   E-Mail
Created: 2007-02-16 23:11
Highlight selected Text   Edit   Delete   Quote Reply
 Re: how to run a cmd in a xml-file as normal user?
Posts: 426
Registered: 2004-09-09
You can run commands as a different user with sudo but package build/installation commands should never affect the home directory of a non-system user. Applications which need per-user initialization must do that automatically on first startup or something like that.
Profile   Private Message   Web
Created: 2007-02-17 01:52
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a