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 Sun 21 Dec 2014, 22:04
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 Posts_count_1  
Author Message
Wognath

Joined: 19 Apr 2009
Posts: 193

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:   Sort by:   
Page 1 of 1 Posts_count_1  
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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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