Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 21:36
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Opera and Iron as spot
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Wognath

Joined: 19 Apr 2009
Posts: 154

PostPosted: Fri 28 Jun 2013, 15:49    Post subject:  Opera and Iron as spot  

Hello,
There is a lot of information about running Firefox and Seamonkey as Spot, such as www.murga-linux.com/puppy/viewtopic.php?t=579. Working from this and scripts in Fatdog, after quite a bit of trial and error I was able to get my favorite browsers, Opera and Iron, running as Spot. Some directories have to be made in non-default locations and this info sent to the browser when it is started. Probably all obvious stuff for the experts, but these little scripts might save another beginner some time. Tested in Saluki and Precise.

Note: I haven't installed the browsers, I run them from folders in /mnt/home/apps, so the paths to executables are odd...

OPERA
Code:
#!/bin/bash
if [ ! -d $HOME/spot/Downloads ]; then
   mkdir $HOME/spot/Downloads
   chown -R spot $HOME/spot/Downloads
fi
if [ ! -d /$HOME/spot/.opera ]; then
   mkdir $HOME/spot/.opera
   mkdir $HOME/spot/.opera/profile
   chown -R spot $HOME/spot/.opera
fi
export OPERA_DIR=${OPERA_DIR:-/mnt/home/apps/opera/share/opera}
export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-/root/spot/.opera/profile}
#path to executable file, not to the script in .../apps/opera!
su spot -c /mnt/home/apps/opera/lib/opera/opera "$@"


IRON
Code:
#!/bin/bash
if [ ! -d $HOME/spot/Downloads]; then
   mkdir $HOME/spot/Downloads
chown -R spot /root/spot/Downloads
fi

if [ ! -d /root/spot/.irondata]; then
   mkdir /root/spot/.irondata
chown -R spot /root/spot/.irondata
fi

#path to executable (a library)
p="/mnt/home/apps/iron/usr/share/iron/iron"
u=" -user-data-dir=/root/spot/.irondata"

su spot -c "$p$u $1"
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0477s ][ Queries: 12 (0.0156s) ][ GZIP on ]