Chrome Question.- Dissable update? (SOLVED)

Moderator: BarryK

Post Reply
User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 637 times
Been thanked: 284 times
Contact:

Chrome Question.- Dissable update? (SOLVED)

Post by pp4mnklinux »

@mikewalsh ?

Hello everybody:

SOMETIMES... I use Portable Chrome on EasyOS, but nowadays an option to update appears.

If I choose this option, there is an error and chrome stop working, so I decide not to update till this problem will be solved.

What I disturb a little is the message advising an update is available.

What should I modify at the launch file to make google not to update?

My launch file code is:

Code: Select all

#!/bin/sh
#
# Launcher for 'portable' Google Chrome browser
#
HERE="$(dirname "$(readlink -f "$0")")"
#
LAST_RELEASE=`wget -qO- https://omahaproxy.appspot.com/linux`
INSTALLED_VERSION=`cat "$HERE/PROFILE/spot/google-chrome/Last Version"`
#
### UPDATE ###

if [ $LAST_RELEASE != $INSTALLED_VERSION ]; then

yad --undecorated --center --form --text="                      An UPDATE is available.  Would you like to install it? 
---------------------------------------------------------------------------------
            If you are running Fossapup64, Bionicpup64, Xenialpup64 or 
           Tahrpup64 - or derivatives of these - you can allow the update
        to proceed. If you are running any other Puppies or Puppy-derived
          distros - for instance, EasyOS or Quickpup, or any of the Slackos,
                       you will need to hit the 'No thanks' button now. 
                                                                                                                         
           To check for the prescence of the 'ar' binary, open a terminal
           and type 'which ar', followed by hitting Enter. If you receive
           a filesystem location, you are good to go. If you receive 'bash:
           command not found', then 'ar' is not present on your distro.
                                                                                                                                    
          Please load your devX SFS package before attempting to update
            Chrome. If you do not, then the Chrome-portable will end up
             non-functional, due to the 'chrome' directory being deleted!
                                                                                                                         " --button="YES PLEASE - update Chrome now":2 --button="NO THANKS - ask me later...":1
#
foo=$?
#
	if [[ $foo -eq 2 ]]; then
	$HERE/UpdateChrome
  fi
fi
#
mkdir "$HERE/PROFILE" 2> /dev/null
mkdir "$HERE/PROFILE/spot" 2> /dev/null
mkdir "$HERE/PROFILE/spot/google-chrome" 2> /dev/null
#
chown -R spot:spot "$HERE/PROFILE/spot" 
chown -R spot:spot "$HERE/lib"
chown -R spot:spot "$HERE/chrome"
#
if grep -q 'Quirky April64' /etc/DISTRO_SPECS
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	run-as-spot "$HERE/chrome/chrome" --user-data-dir=$HERE/PROFILE/spot/google-chrome --disable-infobars "$@"
elif grep -q 'puppy_xenialpup64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	run-as-spot "$HERE/chrome/chrome" --user-data-dir=$HERE/PROFILE/spot/google-chrome --disable-infobars "$@"
else
	run-as-spot "$HERE/chrome/chrome" --user-data-dir=$HERE/PROFILE/spot/google-chrome --disable-infobars "$@"
fi
Attachments
image 08 50 39.jpg
image 08 50 39.jpg (79.8 KiB) Viewed 719 times
Last edited by pp4mnklinux on Sat Sep 28, 2024 9:48 pm, edited 5 times in total.
User avatar
BarryK
Posts: 2695
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: Chrome Question.- Dissable update ???

Post by BarryK »

Well, you are using a "foreign" package.

If install Chrome from the menu, the menu entry to update works, or rather, nobody has reported it doesn't.

Post Reply

Return to “EasyOS”