mystic change of defaultbrowser after altering Fossapup64(solved)

Moderators: 666philb, Forum moderators

Post Reply
Eastler_Dart
Posts: 80
Joined: Wed Aug 05, 2020 3:34 am
Has thanked: 1 time
Been thanked: 8 times

mystic change of defaultbrowser after altering Fossapup64(solved)

Post by Eastler_Dart »

Hello all :-)

Since many days | some weeks I'm looking for the reason of a mystic change of /usr/local/bin/defaultbrowser.
Seen maaaanyyy files, didn't find the place, where it gets changed :-(.

What I had done:
- Taken Fossapup64-9, did some changes in the puppy...sfs, most optical things, all went good.
- for the whish, to have seamonkey as the one and only standardbrowser, I had put puppy...sfs and adrv...sfs together in one single sfs,
(unsquash puppy...sfs in a directory tree, then unsquashfs adrv...sfs over that,
mksquashfs of that in puppy...sfs and put in the bootdir a empty file adrv...sfs)

What now is the problem:
now, while that Fossapup is booting, the content of /usr/local/bin/defaultbrowser got changed
from [#!/bin/sh (lf) exec /opt/seamonkey/seamonkey -P StandardBenutzer "$@"]
to [#!/bin/sh (lf) exec defaultbrowser "$@"],
that results in endless looping of calling 'defaultbrowser',
with every call of defaultbrowser, a additional endless loop starts, wich calls himself.

What I found until yet:
-- the change happens in a backgrounded task - first tests showed a change while xorg gets configured,
but boot with 'nox' the xorg-things didn't get started, the defaultbrowserfile gets already changed.
-- its not a clear command which includes something like ... > /usr/local/bin/defaultbrowser,
I have checked all files starting from '/', if they have '/usr/local' or 'default' in it,
looked every match for 'able to change file defaultbrowser' = nothing.
Same with 'BROWSER', 'DEFAULTBROWSER', 'WEBBROWSER' = nothing.
and yes, also checked the dirs /adrive and /pdrive, which gets copied to /usr/bin while booting.
-- in /etc/init.d and /etc/rc.d(/rc.services) scripts get started, I have changed that scripts to log in a tempfile,
and checked that tempfile after boot, seen many things happening, but for my mind nothing of that could
change the defaultbrowserfile - but at such a place the change must be written.

Does anyone know something about the automatism of setting up /usr/local/bin/defaultbrowser,
and can give some hints, where that can happen ?
Maybe a script, which simply will show a help out of internet, checks before that for a usable content of 'defaultbrowserfile'?

Thanks a lot for any help - Eastler

P.S: forgot to write: All that is for a 'live' puppy, every time I wrote 'booting', it means it is a 'FirstBoot' of puppy

Last edited by bigpup on Mon Feb 14, 2022 11:55 pm, edited 1 time in total.
Reason: added solved to show fix was found
Eastler_Dart
Posts: 80
Joined: Wed Aug 05, 2020 3:34 am
Has thanked: 1 time
Been thanked: 8 times

Re: mystic change of defaultbrowser

Post by Eastler_Dart »

additional infos, just found:

it's not only defaultbrowser, which gets changed, here a little table with some examples, what gets changed:

Code: Select all

File               | in puppy...sfs                                                         |  after boot in running Sys
-------------------|------------------------------------------------------------------------|-----------------------------
defaultchat:       |exec pidginshell $@                                                     | exec hexchat-wrapper "$@"
defaultcontact:    |exec /opt/seamonkey/seamonkey -addressbook  -P  StandardBenutzer "$@"   | exec osmo "$@"
defaultemail:      |exec /opt/seamonkey/seamonkey -mail  -P  StandardBenutzer "$@"          | exec claws-mail "$@"
defaulthtmleditor: |exec /opt/seamonkey/seamonkey -edit -P StandardBenutzer "$@"            | exec defaulttexteditor "$@"
.
.
.

that's why I got the thought, it could be /usr/sbin/puppyapps,
because that looks and changes around default things.
Changed puppyapps to write to my logfile, if it get's started.
hm. no logtext of puppyapps in logfile :-(, so it wasn't running at boottime

Code: Select all

#!/bin/bash
#based on defaults-chooser by sc0ttman
#GPL 2015 - Sigmund Berglund (zigbert)

set -a #export all functions and variables
export TEXTDOMAIN=puppyapps
export OUTPUT_CHARSET=UTF-8
DEFAULTAPPS=""
default_apps='archiver audioeditor audiomixer audioplayer barehtmlviewer browser calendar cdplayer cdrecorder chat chmviewer connect contact draw email filemanager htmleditor htmlviewer imageeditor imageviewer mediaplayer musicplayer paint pdfviewer processmanager screenshot run search spreadsheet terminal texteditor textviewer torrent wordprocessor'
IGNORE_ALREADY_SET=""
APPS_DEFAULT_EXEC="$(gettext 'Autodetect')"

export TMPDIR=/tmp/apps/puppyapps
! [ -d $TMPDIR ] && mkdir -p ${TMPDIR}

#Eastler: looking for the point, where /usr/local/bin/defaultbrowser gets changed while booting
echo  "----------------------------------------------------------------" >> /sucheDefBrow.txt
echo  "/usr/sbin/puppyapps: first lines: content /usr/local/bin/defaultbrowser=" >> /sucheDefBrow.txt
cat /usr/local/bin/defaultbrowser >> /sucheDefBrow.txt
echo  "----------------------------------------------------------------" >> /sucheDefBrow.txt
.
.
.

Also added 'ps' at some places in scripts, to list actual running processes to the log file.
As I take out 'nox' from Bootcommands, Fossapup boots 'normal' to X,
and with many logs with the content of defaultbrowser it is to see,
file defaultbrowser changes, between xorg-autoconf is looking for the X-ececutable and the X-Version.
at this point here is the snapshot of running processes:

Code: Select all

BEFORE defaultbrowser-content changes from seamonkey do 'defaultbrowser':
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/busybox init
    2 root      0:00 [kthreadd]
    3 root      0:00 [rcu_gp]
    4 root      0:00 [rcu_par_gp]
    5 root      0:00 [kworker/0:0-pm]
    6 root      0:00 [kworker/0:0H-kb]
    7 root      0:00 [kworker/u4:0-ev]
    8 root      0:00 [mm_percpu_wq]
    9 root      0:00 [ksoftirqd/0]
   10 root      0:00 [rcu_preempt]
   11 root      0:00 [migration/0]
   12 root      0:00 [cpuhp/0]
   13 root      0:00 [cpuhp/1]
   14 root      0:00 [migration/1]
   15 root      0:00 [ksoftirqd/1]
   16 root      0:00 [kworker/1:0-eve]
   17 root      0:00 [kworker/1:0H-kb]
   18 root      0:00 [kdevtmpfs]
   19 root      0:00 [netns]
   20 root      0:00 [rcu_tasks_kthre]
   21 root      0:00 [kworker/0:1-auf]
   22 root      0:00 [kworker/1:1-eve]
   23 root      0:00 [oom_reaper]
   24 root      0:00 [writeback]
   25 root      0:00 [kcompactd0]
   26 root      0:00 [ksmd]
   27 root      0:00 [khugepaged]
   56 root      0:00 [kworker/u4:1-ev]
   87 root      0:00 [kintegrityd]
   88 root      0:00 [kblockd]
   89 root      0:00 [blkcg_punt_bio]
   90 root      0:00 [tifm]
   91 root      0:00 [ata_sff]
   92 root      0:00 [md]
   93 root      0:00 [devfreq_wq]
   94 root      0:00 [kworker/0:2-eve]
   95 root      0:00 [rpciod]
   96 root      0:00 [kworker/u5:0]
   97 root      0:00 [xprtiod]
   98 root      0:00 [kswapd0]
   99 root      0:00 [nfsiod]
  100 root      0:00 [cifsiod]
  101 root      0:00 [smb3decryptd]
  102 root      0:00 [cifsfileinfoput]
  103 root      0:00 [cifsoplockd]
  104 root      0:00 [xfsalloc]
  105 root      0:00 [xfs_mru_cache]
  108 root      0:00 [acpi_thermal_pm]
  109 root      0:00 [nvme-wq]
  110 root      0:00 [nvme-reset-wq]
  111 root      0:00 [nvme-delete-wq]
  112 root      0:00 [scsi_eh_0]
  113 root      0:00 [scsi_tmf_0]
  114 root      0:00 [scsi_eh_1]
  115 root      0:00 [scsi_tmf_1]
  116 root      0:00 [scsi_eh_2]
  117 root      0:00 [scsi_tmf_2]
  118 root      0:00 [scsi_eh_3]
  119 root      0:00 [scsi_tmf_3]
  120 root      0:00 [scsi_eh_4]
  121 root      0:00 [scsi_tmf_4]
  122 root      0:00 [scsi_eh_5]
  123 root      0:00 [scsi_tmf_5]
  124 root      0:00 [kworker/u4:2-ev]
  125 root      0:00 [kworker/u4:3-ev]
  126 root      0:00 [kworker/u4:4-ev]
  127 root      0:00 [kworker/u4:5-ev]
  128 root      0:00 [kworker/u4:6-sc]
  129 root      0:00 [uas]
  130 root      0:00 [kworker/0:3-pm]
  131 root      0:00 [raid5wq]
  132 root      0:00 [sdhci]
  133 root      0:00 [irq/16-mmc0]
  134 root      0:00 [kvub300c]
  135 root      0:00 [kvub300p]
  136 root      0:00 [kvub300d]
  137 root      0:00 [kmemstick]
  138 root      0:00 [kworker/u4:7-ev]
  139 root      0:00 [kstrp]
  140 root      0:00 [kworker/u4:8]
  149 root      0:00 [kworker/0:4-rcu]
  150 root      0:00 [kworker/0:5-eve]
  151 root      0:00 [scsi_eh_6]
  152 root      0:00 [scsi_tmf_6]
  153 root      0:00 [usb-storage]
  154 root      0:00 [kworker/0:1H-kb]
  155 root      0:00 [kworker/1:2-eve]
  409 root      0:00 [kworker/1:1H-kb]
  539 root      0:00 [loop0]
  566 root      0:00 [loop1]
  593 root      0:00 [loop2]
  624 root      0:00 [loop3]
  877 root      0:00 /usr/libexec/gam_server
  947 root      0:01 udevd --daemon --resolve-names=early
 2658 root      0:00 [firewire]
 2673 root      0:00 [firewire_ohci]
 3138 root      0:00 [kworker/1:3]
 3310 root      0:00 [kworker/1:4]
 4778 root      0:00 {rc.network_eth} /bin/sh /etc/rc.d/rc.network_eth
 4808 root      0:00 {rc.services} /bin/ash /etc/rc.d/rc.services
 4829 root      0:00 udevd --daemon --resolve-names=early
 4832 root      0:00 udevd --daemon --resolve-names=early
 4839 root      0:00 udevd --daemon --resolve-names=early
 4872 root      0:00 [cfg80211]
 4900 root      0:00 dhcpcd -I '' eth0
 4903 root      0:00 {pupcheck} /bin/sh /usr/local/bin/pupcheck
 4904 root      0:00 udevd --daemon --resolve-names=early
 4905 root      0:00 udevd --daemon --resolve-names=early
 4906 root      0:00 udevd --daemon --resolve-names=early
 4907 root      0:00 udevd --daemon --resolve-names=early
 4913 root      0:00 udevd --daemon --resolve-names=early
 4921 root      0:00 -sh
 4922 root      0:00 getty 38400 tty2
 4932 root      0:00 sleep 1
 4950 root      0:00 /usr/local/apps/ROX-Filer/ROX-Filer -p /root/Choices/ROX-Filer/PuppyPin
 4965 root      0:00 {xwin} /bin/sh /usr/bin/xwin
 4977 root      0:00 {xorgwizard-auto} /bin/bash /usr/sbin/xorgwizard-automatic
 4983 root      0:00 {xorg-autoconf} /bin/bash /usr/sbin/xorg-autoconf
 4993 root      0:00 busybox ps -T  <=== this is my command, writes to log-file 

Code: Select all

AFTER defaultbrowser-content changes from seamonkey do 'defaultbrowser':
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/busybox init
    2 root      0:00 [kthreadd]
    3 root      0:00 [rcu_gp]
    4 root      0:00 [rcu_par_gp]
    5 root      0:00 [kworker/0:0-pm]
    6 root      0:00 [kworker/0:0H-kb]
    7 root      0:00 [kworker/u4:0-ev]
    8 root      0:00 [mm_percpu_wq]
    9 root      0:00 [ksoftirqd/0]
   10 root      0:00 [rcu_preempt]
   11 root      0:00 [migration/0]
   12 root      0:00 [cpuhp/0]
   13 root      0:00 [cpuhp/1]
   14 root      0:00 [migration/1]
   15 root      0:00 [ksoftirqd/1]
   16 root      0:00 [kworker/1:0-eve]
   17 root      0:00 [kworker/1:0H-kb]
   18 root      0:00 [kdevtmpfs]
   19 root      0:00 [netns]
   20 root      0:00 [rcu_tasks_kthre]
   21 root      0:00 [kworker/0:1-mm_]
   22 root      0:00 [kworker/1:1-eve]
   23 root      0:00 [oom_reaper]
   24 root      0:00 [writeback]
   25 root      0:00 [kcompactd0]
   26 root      0:00 [ksmd]
   27 root      0:00 [khugepaged]
   56 root      0:00 [kworker/u4:1-ev]
   87 root      0:00 [kintegrityd]
   88 root      0:00 [kblockd]
   89 root      0:00 [blkcg_punt_bio]
   90 root      0:00 [tifm]
   91 root      0:00 [ata_sff]
   92 root      0:00 [md]
   93 root      0:00 [devfreq_wq]
   94 root      0:00 [kworker/0:2-eve]
   95 root      0:00 [rpciod]
   96 root      0:00 [kworker/u5:0]
   97 root      0:00 [xprtiod]
   98 root      0:00 [kswapd0]
   99 root      0:00 [nfsiod]
  100 root      0:00 [cifsiod]
  101 root      0:00 [smb3decryptd]
  102 root      0:00 [cifsfileinfoput]
  103 root      0:00 [cifsoplockd]
  104 root      0:00 [xfsalloc]
  105 root      0:00 [xfs_mru_cache]
  108 root      0:00 [acpi_thermal_pm]
  109 root      0:00 [nvme-wq]
  110 root      0:00 [nvme-reset-wq]
  111 root      0:00 [nvme-delete-wq]
  112 root      0:00 [scsi_eh_0]
  113 root      0:00 [scsi_tmf_0]
  114 root      0:00 [scsi_eh_1]
  115 root      0:00 [scsi_tmf_1]
  116 root      0:00 [scsi_eh_2]
  117 root      0:00 [scsi_tmf_2]
  118 root      0:00 [scsi_eh_3]
  119 root      0:00 [scsi_tmf_3]
  120 root      0:00 [scsi_eh_4]
  121 root      0:00 [scsi_tmf_4]
  122 root      0:00 [scsi_eh_5]
  123 root      0:00 [scsi_tmf_5]
  124 root      0:00 [kworker/u4:2-ev]
  125 root      0:00 [kworker/u4:3-ev]
  126 root      0:00 [kworker/u4:4-ev]
  127 root      0:00 [kworker/u4:5-ev]
  128 root      0:00 [kworker/u4:6-sc]
  129 root      0:00 [uas]
  130 root      0:00 [kworker/0:3-pm]
  131 root      0:00 [raid5wq]
  132 root      0:00 [sdhci]
  133 root      0:00 [irq/16-mmc0]
  134 root      0:00 [kvub300c]
  135 root      0:00 [kvub300p]
  136 root      0:00 [kvub300d]
  137 root      0:00 [kmemstick]
  138 root      0:00 [kworker/u4:7-ev]
  139 root      0:00 [kstrp]
  140 root      0:00 [kworker/u4:8]
  149 root      0:00 [kworker/0:4-rcu]
  150 root      0:00 [kworker/0:5-eve]
  151 root      0:00 [scsi_eh_6]
  152 root      0:00 [scsi_tmf_6]
  153 root      0:00 [usb-storage]
  154 root      0:00 [kworker/0:1H-kb]
  155 root      0:00 [kworker/1:2-auf]
  409 root      0:00 [kworker/1:1H-kb]
  539 root      0:00 [loop0]
  566 root      0:00 [loop1]
  593 root      0:00 [loop2]
  624 root      0:00 [loop3]
  877 root      0:00 /usr/libexec/gam_server
  947 root      0:01 udevd --daemon --resolve-names=early
 2658 root      0:00 [firewire]
 2673 root      0:00 [firewire_ohci]
 3138 root      0:00 [kworker/1:3]
 3310 root      0:00 [kworker/1:4]
 4778 root      0:00 {rc.network_eth} /bin/sh /etc/rc.d/rc.network_eth
 4808 root      0:00 {rc.services} /bin/ash /etc/rc.d/rc.services
 4829 root      0:00 udevd --daemon --resolve-names=early
 4832 root      0:00 udevd --daemon --resolve-names=early
 4839 root      0:00 udevd --daemon --resolve-names=early
 4872 root      0:00 [cfg80211]
 4900 root      0:00 dhcpcd -I '' eth0
 4903 root      0:00 {pupcheck} /bin/sh /usr/local/bin/pupcheck
 4904 root      0:00 udevd --daemon --resolve-names=early
 4905 root      0:00 udevd --daemon --resolve-names=early
 4906 root      0:00 udevd --daemon --resolve-names=early
 4907 root      0:00 udevd --daemon --resolve-names=early
 4913 root      0:00 udevd --daemon --resolve-names=early
 4921 root      0:00 -sh
 4922 root      0:00 getty 38400 tty2
 4932 root      0:00 sleep 1
 4965 root      0:00 {xwin} /bin/sh /usr/bin/xwin
 4977 root      0:00 {xorgwizard-auto} /bin/bash /usr/sbin/xorgwizard-automatic
 4983 root      0:00 {xorg-autoconf} /bin/bash /usr/sbin/xorg-autoconf
 5000 root      0:00 /usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas
 5002 root      0:00 busybox ps -T

There is between many processes pupcheck,

Code: Select all

#!/bin/sh
if [ -d /usr/local/adrive ];                                                       [b][i]++++++ is true in my system +++++++[/i][/b]
   then
      rm -r /var/packages/builtin_files
      cp -r /var/packages/DISTRO_PKGS_SPECS-norm /var/packages/DISTRO_PKGS_SPECS
      cp -r /var/packages/builtin_files-norm /var/packages/builtin_files
      cp -r /var/packages/woof-installed-packages-norm /var/packages/woof-installed-packages
      cp -r /usr/sbin/fixPuppyPin.bak /usr/sbin/fixPuppyPin
      echo 1 > /usr/local/quickpet/checks/pupcheck/pdrv/defaultsfix
      if [ -f /usr/local/quickpet/checks/pupcheck/adrv/defaultsfix ];then
         rm /root/Choices/ROX-Filer/PuppyPin
         cp /root/Choices/ROX-Filer/PuppyPin-norm /root/Choices/ROX-Filer/PuppyPin
         rox -p /root/Choices/ROX-Filer/PuppyPin                                   [b][i]+++++++++++++++++ ????? ++++[/i][/b]
         cp -r /usr/local/adrive/* /usr/local/bin/                                 [b][i]++ defaultbrowser in adrive  has also seamonkey[/i][/b]
         rm /usr/local/quickpet/checks/pupcheck/adrv/defaultsfix
         /usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas || true
         /usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules /usr/lib/x86_64-linux-gnu/gio/modules || true
         fixmenus                                                                  [b][i]++++ seen fixemnus, nothing about defaultbrowser +++[/i][/b]
         jwm -reload
      fi
   else                                                                            [b][i]++++++ else = in my sytem not executed ++++++++[/i][/b] 
      rm -r /usr/sbin/fixPuppyPin
      rm -r /var/packages/builtin_files
      cp -r /var/packages/DISTRO_PKGS_SPECS-sml /var/packages/DISTRO_PKGS_SPECS
      cp -r /var/packages/builtin_files-sml /var/packages/builtin_files
      cp -r /var/packages/woof-installed-packages-sml /var/packages/woof-installed-packages
      if [ -f /usr/local/quickpet/checks/pupcheck/pdrv/defaultsfix ];then
         rm /root/Choices/ROX-Filer/PuppyPin
         cp /root/Choices/ROX-Filer/PuppyPin-sml /root/Choices/ROX-Filer/PuppyPin
         rox -p /root/Choices/ROX-Filer/PuppyPin
         cp -r /usr/local/pdrive/* /usr/local/bin/
         rm /usr/local/quickpet/checks/pupcheck/pdrv/defaultsfix
         echo 1 > /usr/local/quickpet/checks/pupcheck/adrv/defaultsfix
         fixmenus
         jwm -reload
      fi
fi

which can't be the Changer of defaultbrowser - I think

hope someone has an idea or hint - rolleyes

Thanks for your regards

williams2
Posts: 1023
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 288 times

Re: mystic change of defaultbrowser

Post by williams2 »

In /usr/local/bin/pupcheck, there is this line: cp -r /usr/local/pdrive/* /usr/local/bin/
which would overwrite some of the defaults.

Maybe echo 1 > /usr/local/quickpet/checks/pupcheck/pdrv/defaultsfix disables it after it has run once?

pupcheck is called from:
/etc/rc.d/rc.local
/usr/sbin/delayedrun
/usr/sbin/quicksetup

You could disable pupcheck by changing
#!/bin/sh
to:
#!/bin/sh
exit

I do not know what affect that would have on the system.

A workaround might be to backup your default scripts, and copy them back every time Xorg starts.
Something like a script in /root/Startup:

Code: Select all

#!/bin/sh
sleep 5
cp /root/defaults/* /usr/local/bin/

but that might need to run every time pupcheck runs.

Maybe echo 1 > /usr/local/quickpet/checks/pupcheck/pdrv/defaultsfix would work?

Eastler_Dart
Posts: 80
Joined: Wed Aug 05, 2020 3:34 am
Has thanked: 1 time
Been thanked: 8 times

Re: mystic change of defaultbrowser after altering Fossapup64

Post by Eastler_Dart »

:o :o :o :o :o
boahhhhh, havn't seen the wood because of the trees in front of it :cry: :cry: :cry:

the solution was e2fsck on the boot-partition, where the Fossapup64-files are stored / booted from

It was no mistake in the Puppysystem, there were errors on the harddrive

Thanks for your regards, thanks for your help, now I have to smoke a cigarette and - no, no alcohol :? :? :?

Post Reply

Return to “Fossapup64”