Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Moderator: Forum moderators

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

Governor wrote:

The installation that has problems (and maintains previous bookmarks and settings) is here:
/mnt/nvme0n1p4/Brave browser/Brave-portable64

Just to mention, don't know if it's a typo, the path to Brave-portable64 cannot contain space(s) (Brave<space>browser)
Better remove the space, so becomes e.g. /mnt/nvme0n1p4/Bravebrowser/Brave-portable64 .

edit: Try what williwaw said, perhaps the profile folder that you copied is the profile folder from the older setup on FAT32 ? (I'd really advice to forget about the settings you earlier made and start "fresh")

User avatar
Governor
Posts: 775
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 193 times
Been thanked: 40 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by Governor »

@fredx181

williwaw wrote: Sat May 04, 2024 3:47 pm
Governor wrote: Sat May 04, 2024 10:59 am

I downloaded a "fresh" copy of Brave and installed it on an ext4 partition. It ran fine.
I copied the fresh Brave installation to another folder on the same ext4 drive and the peculiar message is back............

Not only that, but my settings and bookmarks from the previous installation are present. How is this possible?

you broke something in your profile when you moved the app?
rename the profile folder and see if the app will create a new one.

I deleted this folder: /mnt/nvme0n1p4/Brave browser/Brave-portable64

And I copied this folder: /mnt/nvme0n1p4/Downloads/Browsers/Brave-portable64
to: /mnt/nvme0n1p4/Brave browser/ (to take its place).

The installation that has problems (and maintains previous bookmarks and settings) is here:
/mnt/nvme0n1p4/Brave browser/Brave-portable64

I deleted the profile folder:
/mnt/nvme0n1p4/Brave browser/Brave-portable64/PROFILE/spot/Brave-Browser

I then ran the launch script here:
/mnt/nvme0n1p4/Brave browser/Brave-portable64/LAUNCH

Although a new profile was created (which is empy), there is no change.

I get the same result as before

Meanwhile the installation I copied from runs without error.
/mnt/nvme0n1p4/Downloads/Browsers/Brave-portable64/LAUNCH

Don't take life too seriously, you will never get out alive.

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

@Governor

earlier, fredx181 wrote:

Just to mention, don't know if it's a typo, the path to Brave-portable64 cannot contain space(s) (Brave<space>browser)
Better remove the space, so becomes e.g. /mnt/nvme0n1p4/Bravebrowser/Brave-portable64 .

Again, remove the space in the folder name, change (rename) "Brave browser" to "Bravebrowser" (or whatever, but should be without space(s) ).
The problem will probably be solved then.. (edit: better late than never :D )
(it's a limitation, I know, the LAUNCH script would need a change to support path with spaces, in the meantime it should work fine without the space(s) in the path).

edit:

Meanwhile the installation I copied from runs without error.
/mnt/nvme0n1p4/Downloads/Browsers/Brave-portable64/LAUNCH

Exactly, because that path is without spaces.

User avatar
Governor
Posts: 775
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 193 times
Been thanked: 40 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by Governor »

fredx181 wrote: Thu May 09, 2024 2:19 pm

@Governor

earlier, fredx181 wrote:

Just to mention, don't know if it's a typo, the path to Brave-portable64 cannot contain space(s) (Brave<space>browser)
Better remove the space, so becomes e.g. /mnt/nvme0n1p4/Bravebrowser/Brave-portable64 .

Again, remove the space in the folder name, change (rename) "Brave browser" to "Bravebrowser" (or whatever, but should be without space(s) ).
The problem will probably be solved then.. (edit: better late than never :D )
(it's a limitation, I know, the LAUNCH script would need a change to support path with spaces, in the meantime it should work fine without the space(s) in the path).

edit:

Meanwhile the installation I copied from runs without error.
/mnt/nvme0n1p4/Downloads/Browsers/Brave-portable64/LAUNCH

Exactly, because that path is without spaces.

Wow. That worked.
Thanks!

I am not even going to ask about why spaces are sometimes allowed and sometimes not allowed. :?

Don't take life too seriously, you will never get out alive.

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

@Governor
Ok, nice, finally solved !

I am not even going to ask about why spaces are sometimes allowed and sometimes not allowed.

Will try to explain anyway (no rocket science :) )
The trick to support path with spaces is to add double quotes around all instances of $HERE (in this case $HERE is where the LAUNCH script is located)
If the last block of the LAUNCH script would be as below code, then a path with spaces will be supported.
(changed e.g. --user-data-dir=$HERE/PROFILE/spot/Brave-Browser (originally without quotes around $HERE) to --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser)

Code: Select all

### fredx181, 2024-05-10 Add double quotes around all instances of $HERE
### so no problems when running from a path containing spaces
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/brave/brave" --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser --disk-cache-size=5000000 --media-cache-size=5000000 --allow-outdated-plugins "$@"
else
	run-as-spot "$HERE/brave/brave" --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser --disk-cache-size=5000000 --media-cache-size=5000000 --allow-outdated-plugins --test-type "$@"
fi
geo_c
Posts: 2846
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2140 times
Been thanked: 859 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by geo_c »

fredx181 wrote: Fri May 10, 2024 3:14 pm

The trick to support path with spaces is to add double quotes around all instances of $HERE (in this case $HERE is where the LAUNCH script is located)

This bit of information is HUGELY helpful to a big scripting project I'm currently working on!

geo_c
Old School Hipster, and Such

User avatar
rockedge
Site Admin
Posts: 6353
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2538 times
Been thanked: 2514 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by rockedge »

@fredx181 That's a really cool observation....very useful :ugeek: :thumbup2:

geo_c
Posts: 2846
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2140 times
Been thanked: 859 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by geo_c »

fredx181 wrote: Fri May 10, 2024 3:14 pm

The trick to support path with spaces is to add double quotes around all instances of $HERE (in this case $HERE is where the LAUNCH script is located)

And does this work for $variables in general? like one created by a read -p input?

EDIT: YES IT DOES!

geo_c
Old School Hipster, and Such

User avatar
Governor
Posts: 775
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 193 times
Been thanked: 40 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by Governor »

fredx181 wrote: Fri May 10, 2024 3:14 pm

@Governor
Ok, nice, finally solved !

I am not even going to ask about why spaces are sometimes allowed and sometimes not allowed.

Will try to explain anyway (no rocket science :) )
The trick to support path with spaces is to add double quotes around all instances of $HERE (in this case $HERE is where the LAUNCH script is located)
If the last block of the LAUNCH script would be as below code, then a path with spaces will be supported.
(changed e.g. --user-data-dir=$HERE/PROFILE/spot/Brave-Browser (originally without quotes around $HERE) to --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser)

Code: Select all

### fredx181, 2024-05-10 Add double quotes around all instances of $HERE
### so no problems when running from a path containing spaces
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/brave/brave" --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser --disk-cache-size=5000000 --media-cache-size=5000000 --allow-outdated-plugins "$@"
else
	run-as-spot "$HERE/brave/brave" --user-data-dir="$HERE"/PROFILE/spot/Brave-Browser --disk-cache-size=5000000 --media-cache-size=5000000 --allow-outdated-plugins --test-type "$@"
fi

Ok, I get that. It is very similar to Windows.
Thanks.

I still think it odd that with the broken folder name (unquoted with encapsulated space), my previous Brave browser settings and bookmarks showed up, even though the profile folder was empty.

Last edited by mikewalsh on Fri May 10, 2024 7:02 pm, edited 1 time in total.
Reason: Edited to remove extra "quote" tags. No need to "quote" yourself..!

Don't take life too seriously, you will never get out alive.

User avatar
mikewalsh
Moderator
Posts: 6022
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 731 times
Been thanked: 1895 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by mikewalsh »

@geo_c :-

I think you can also use 'round' brackets - not 'square' or 'curly' - like the following example. It's part of a script from my CamRecord 'portable'.....where it sets up variables for the final 'exec' line, calling these from wee text files saved within the app itself:-

Code: Select all

HERE="$(dirname "$(readlink -f "$0")")"
AUDIO=$(cat $HERE/SOURCES/CONFIG/audio.txt)
VIDEO=$(cat $HERE/SOURCES/CONFIG/cam.txt)
FRAME=$(cat $HERE/SOURCES/CONFIG/frame.txt)
RESOLUTION=$(cat $HERE/SOURCES/CONFIG/res.txt)

I think that's right in THIS context....?

Mike. ;)

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

mikewalsh wrote: Fri May 10, 2024 6:57 pm

Code: Select all

HERE="$(dirname "$(readlink -f "$0")")"
AUDIO=$(cat $HERE/SOURCES/CONFIG/audio.txt)
...

If there are one or more space(s) in the $HERE path, cat cannot find audio.txt, so should be with quotes around $HERE e.g. AUDIO=$(cat "$HERE"/SOURCES/CONFIG/audio.txt)

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

Governor wrote:

I still think it odd that with the broken folder name (unquoted with encapsulated space), my previous Brave browser settings and bookmarks showed up, even though the profile folder was empty

Could be in /root/.config/BraveSoftware/ (default) , as brave couldn't successfully use the PROFILE folder (because of the space in path) , it creates (and reads from) the default location.

User avatar
Governor
Posts: 775
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 193 times
Been thanked: 40 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by Governor »

fredx181 wrote: Sun May 12, 2024 9:29 am
Governor wrote:

I still think it odd that with the broken folder name (unquoted with encapsulated space), my previous Brave browser settings and bookmarks showed up, even though the profile folder was empty

Could be in /root/.config/BraveSoftware/ (default) , as brave couldn't successfully use the PROFILE folder (because of the space in path) , it creates (and reads from) the default location.

Thanks. I figured it had to be somewhere.
I rebooted since then, and the space in path problem is fixed, and /root/.config/BraveSoftware/ is not there now.

Don't take life too seriously, you will never get out alive.

User avatar
mikewalsh
Moderator
Posts: 6022
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 731 times
Been thanked: 1895 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by mikewalsh »

fredx181 wrote: Sat May 11, 2024 12:19 pm
mikewalsh wrote: Fri May 10, 2024 6:57 pm

Code: Select all

HERE="$(dirname "$(readlink -f "$0")")"
AUDIO=$(cat $HERE/SOURCES/CONFIG/audio.txt)
...

If there are one or more space(s) in the $HERE path, cat cannot find audio.txt, so should be with quotes around $HERE e.g. AUDIO=$(cat "$HERE"/SOURCES/CONFIG/audio.txt)

Oh, I agree Fred....absolutely. I learnt that lesson years ago, and never put spaces into anything that I build myself. If I want to separate things, I always use an underscore these days ( _ ) or a dash ( - ).

About the only time I need to use quotes round anything is in the launcher scripts for my Windows apps running under WINE.....because it insists on mirroring the Windows layout - I guess it HAS to! - vis-a-vis, "Program Files" (with a space in between).

It's good advice, and worth learning. Even for the average Puppian who simply uses their system, and never does anything like compiling or packaging.....because there ARE the odd few Linux apps that pull the same stunt. (Master PDF Editor comes to mind; one of the config directories is named "Code Industry"...)

(*shrug...*)

Mike. ;)

FeodorF
Posts: 222
Joined: Tue Jul 14, 2020 7:52 pm
Has thanked: 10 times
Been thanked: 30 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by FeodorF »

Hello @mikewalsh , hello @fredx181 .

I gave your Brave-portable64 a spin (updated to v. 1.69.168). Video and sound works fine on Bookworm64-10.0.7 but sound fails on EasyOS-6.3 . The reason is that Bookworm uses pipewire were as EasyOS uses pulseaudio. Any idea how to solve this problem?

Regards,
Feodor

EasyOS-6.3:
/etc/alsa/conf.d/50-pulseaudio.conf

Code: Select all

  # Add a specific named PulseAudio pcm and ctl (typically useful for testing)

pcm.pulse {
	@args [ DEVICE ]
	@args.DEVICE {
		type string
		default ""
	}
	type pulse
	device $DEVICE
	hint {
		show {
			@func refer
			name defaults.namehint.basic
		}
		description "PulseAudio Sound Server"
	}
}

ctl.pulse {
	@args [ DEVICE ]
	@args.DEVICE {
		type string
		default ""
	}
	type pulse
	device $DEVICE
}

/etc/alsa/conf.d/99-pulseaudio-default.conf

Code: Select all

# Default to PulseAudio

pcm.!default {
    type pulse
    hint {
        show on
        description "Default ALSA Output (currently PulseAudio Sound Server)"
    }
}

ctl.!default {
    type pulse
}

User avatar
mikewalsh
Moderator
Posts: 6022
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 731 times
Been thanked: 1895 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by mikewalsh »

@FeodorF :-

If I could help with this one, I would.....but I think Fred might be better placed to help here (or indeed, anyone that understands these two). I'm a "straight" ALSA man; I've always hated PulseAudio (so have never become proficient with its quirks).....and I don't know the first thing about PipeWire, because I've never used it.

So as you can see, I couldn't help even if I wanted to. This has got nothing to do with the browser, per se.....it's to do with the audio subsystem. Although I can help with a lot of things, the intricacies of the Linux audio subsystem are not one of them.....

Sorry about that.

Mike. ;)

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

@FeodorF
Not sure, but I think running Brave as spot (as Mike's setup is) has working sound on BookwormPup because it has Pipewire running as spot, difference with EasyOs may be that Pulseaudio is running as root :?: and therefore that sound doesn't work .
Anyway, if you want, you can try running Brave-portable as root, good chance that sound works, then change content of the LAUNCH script to this:

Code: Select all

#!/bin/sh
# Launcher for 'portable' Brave browser (fredx181, change, running as root with --no-sandbox option, instead of running as spot)

HERE="$(dirname "$(readlink -f "$0")")"

mkdir -p "$HERE/PROFILE"

"$HERE/brave/brave" --user-data-dir="$HERE"/PROFILE --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins --no-sandbox --disable-infobars --test-type "$@"

@mikewalsh

.....and I don't know the first thing about PipeWire, because I've never used it.

If you ever have used BookwormPup (and played any sound), you are guilty of having used pipewire :lol:

User avatar
mikewalsh
Moderator
Posts: 6022
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 731 times
Been thanked: 1895 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by mikewalsh »

fredx181 wrote: Tue Sep 17, 2024 12:07 pm

@mikewalsh

.....and I don't know the first thing about PipeWire, because I've never used it.

If you ever have used BookwormPup (and played any sound), you are guilty of having used pipewire :lol:

@fredx181 :-

Hah! In that case, yup; "guilty as charged", mate.......but only briefly, 'cos I HAVE only taken a "look-see" thus far.

I'm typically a very late adopter with new Pups; they're usually between 3-4 yrs old before I make them a "daily driver".......and with the current crop, there's not just a few changes, there's TONS of 'em (all at the same time.....and many leading back to what I was trying very hard to get away from when originally coming to Puppy a decade ago).

Much of it I am familiar with.....but a lot of it I don't like. I absolutely hate Synaptic, for one thing; it was a PITA to use 10 yrs ago, and it's STILL a PITA today. I CAN use it - I know how to - but I will never like it.

I'm a dinosaur, mate. So sue me....!! :roll: (I mean, look how long it took me to finally admit that shinobar's Grub2config was probably "okay"......after lots of "encouragement" from many others in the community. I have bad recollections of many of these tools from my early Linux days.....and I have a LONG memory, at that.)

(*shrug...*)

Mike. ;)

User avatar
fredx181
Posts: 2871
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 335 times
Been thanked: 1197 times
Contact:

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by fredx181 »

mikewalsh wrote:

Hah! In that case, yup; "guilty as charged", mate.......but only briefly, 'cos I HAVE only taken a "look-see" thus far.

Ah. ok, you didn't "inhale", well... then you are "clean". :thumbup:

mikewalsh wrote:

I'm a dinosaur, mate. So sue me....!!

No, we won't prosecute you any further. Why? Because it's a human right to be conservative IMO and... even if you persist being conservative your whole remaining life, no matter what !! ;) :D

P.S. I'm really conservative too in some ways, btw, but some new stuff I do like, and one of them is pipewire, it has some advantages compared to plain alsa (and specially for music production, I think), but needs to be configured well, as it is on BookwormPup (and on KLV too).

FeodorF
Posts: 222
Joined: Tue Jul 14, 2020 7:52 pm
Has thanked: 10 times
Been thanked: 30 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by FeodorF »

Hi @fredx181 ,

you are right, root rights are needed to be able to plug in to the pulse socket.
Thank you very much for that info and your shell script.
Sound works well now with EasyOS-6.3 . (Problem solved)

YouHaveToRunAsRoot.png
YouHaveToRunAsRoot.png (53.25 KiB) Viewed 203 times
User avatar
BarryK
Posts: 2514
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 114 times
Been thanked: 678 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by BarryK »

FeodorF wrote: Tue Sep 17, 2024 6:09 pm

you are right, root rights are needed to be able to plug in to the pulse socket.
Thank you very much for that info and your shell script.
Sound works well now with EasyOS-6.3 . (Problem solved)

@fredx181 @FeodorF
All of the browsers in EasyOS run as their own user, for example Chromium runs as user "chromium", and sound works.

Look at script /usr/local/clients/create-client-environment, at line 59:

Code: Select all

if [ ! -e ${PREFIXDIR1}/home/${APPname}/.config/pulse/client.conf ];then #20211103
 #pulseaudio to work in non-root client...
 mkdir -p ${PREFIXDIR1}/home/${APPname}/.config/pulse
 #see also /etc/pulse/default.pa
 echo 'default-server = unix:/tmp/pulse-socket' > ${PREFIXDIR1}/home/${APPname}/.config/pulse/client.conf
 #$PULSE_RUNTIME_PATH=/run/pulse and this is where apps expect the socket, and named "native"
 # .../etc/pulse/default.pa creates two sockets.
fi
TC-21-32
Posts: 46
Joined: Thu Feb 16, 2023 4:21 am
Location: In my office in MN
Has thanked: 62 times
Been thanked: 11 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by TC-21-32 »

Is there a mirror site for this portable? I'd like to see if it runs but my browsers are too old to get into the mega.nz site.
Thank you.
Du.

I still miss puppy 4.21. Been a user since 4.11 and never going back.

User avatar
mikewalsh
Moderator
Posts: 6022
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 731 times
Been thanked: 1895 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by mikewalsh »

@TC-21-32 :-

Try here, at my MediaFire a/c:-

https://www.mediafire.com/folder/7r6l49 ... e-portable

You're not the first with MEGA.nz woes. The site IS pretty fussy about access via "latest versions", etc..... :roll:

Mike. ;)

FeodorF
Posts: 222
Joined: Tue Jul 14, 2020 7:52 pm
Has thanked: 10 times
Been thanked: 30 times

Re: Brave 'portable' - 64-bit only - now includes manual updater from Fred...

Post by FeodorF »

BarryK wrote: Wed Sep 18, 2024 12:02 am
FeodorF wrote: Tue Sep 17, 2024 6:09 pm

you are right, root rights are needed to be able to plug in to the pulse socket.
Thank you very much for that info and your shell script.
Sound works well now with EasyOS-6.3 . (Problem solved)

@fredx181 @FeodorF
All of the browsers in EasyOS run as their own user, for example Chromium runs as user "chromium", and sound works.

Look at script /usr/local/clients/create-client-environment, at line 59:

Code: Select all

if [ ! -e ${PREFIXDIR1}/home/${APPname}/.config/pulse/client.conf ];then #20211103
 #pulseaudio to work in non-root client...
 mkdir -p ${PREFIXDIR1}/home/${APPname}/.config/pulse
 #see also /etc/pulse/default.pa
 echo 'default-server = unix:/tmp/pulse-socket' > ${PREFIXDIR1}/home/${APPname}/.config/pulse/client.conf
 #$PULSE_RUNTIME_PATH=/run/pulse and this is where apps expect the socket, and named "native"
 # .../etc/pulse/default.pa creates two sockets.
fi

Thank you very much @BarryK !

By looking at /home/spot shouldn't the entry /home/spot/.config/pulse/client.conf exist by default for this user 'spot'?

Regards,
Feodor

This is the original script from Brave-portable64

Code: Select all

#!/bin/sh
#
# Launcher for 'portable' Brave browser
#
HERE="$(dirname "$(readlink -f "$0")")"
#
mkdir "$HERE/PROFILE" 2> /dev/null
mkdir "$HERE/PROFILE/spot" 2> /dev/null
mkdir "$HERE/PROFILE/spot/Brave-Browser" 2> /dev/null
#
chown -R spot:spot "$HERE/brave"
chown -R spot:spot "$HERE/lib"
chown -R spot:spot "$HERE/PROFILE/spot"
#
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/brave/brave" --user-data-dir=$HERE/PROFILE/spot/Brave-Browser --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins "$@"
elif grep -q 'puppy_tahr64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	run-as-spot "$HERE/brave/brave" --user-data-dir=$HERE/PROFILE/spot/Brave-Browser --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins "$@"
elif grep -q 'puppy_xenialpup' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	run-as-spot "$HERE/brave/brave" --user-data-dir=$HERE/PROFILE/spot/Brave-Browser --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins "$@"
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/brave/brave" --user-data-dir=$HERE/PROFILE/spot/Brave-Browser --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins "$@"
else
	run-as-spot "$HERE/brave/brave" --user-data-dir=$HERE/PROFILE/spot/Brave-Browser --disk-cache-size=50000000 --media-cache-size=50000000 --allow-outdated-plugins "$@"
fi

Now I have added to it: (to keep it a portable version)
#
if grep -q 'EasyOS Scarthgap64' /etc/DISTRO_SPECS
then
#
if [ ! -e /home/spot/.config/pulse/client.conf ];then #20211103
mkdir -p /home/spot/.config/pulse
echo 'default-server = unix:/tmp/pulse-socket' > /home/spot/.config/pulse/client.conf
fi
#

@fredx181 I have updated the original LAUNCH script so it will work with EasyOS-Scarthgap running as spot.

LAUNCH.False.gz
(2 KiB) Downloaded 5 times
Post Reply

Return to “Browsers and Internet”