Opera-portable - New release : v115.0.5322.119

Moderator: Forum moderators

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

Re: Opera-portable - New release : v113.0.5230.47

Post by mikewalsh »

Sky Aisling wrote: Tue Jan 14, 2025 7:51 pm

@mikewalsh
Hello Mike,
Where do I find a workable Opera Browser for Fossapup(64)?
Sky

@Sky Aisling :-

Just look in the first post of this thread, Sky. You'll find the link there, as always. It may not always be the very newest release, but it'll never be more than one or two behind at most...

Mike. ;)

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

Hello everybody:

I installed opera Opera-portable - New release : v115.0.5322.119 this afternoon, and It works nice, till...

I like to create links to start web-sites directly (you can see them at the bottom tray, where I have web-sites to faster access)

This code worked with opera 108, but today when I used this links to start opera, it never goes to it, but opera starts with Speed Dial page.

Code: Select all

<TrayButton popup="InoReader" icon="/usr/share/icons/inoreader.jpeg">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.inoreader.com/all_articles</TrayButton>
		<TrayButton popup="whatsapp" icon="/usr/share/icons/whatsapp-logo-icone-fundo-transparente-png.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://web.whatsapp.com/</TrayButton>
		<TrayButton popup="telegram" icon="/usr/share/icons/telegram.jpeg">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://web.telegram.org/a/#83951423</TrayButton>
		<TrayButton popup="ChatGPT" icon="/usr/share/icons/blue_chatgpt.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH   https://chatgpt.com/?oai-dm=1</TrayButton>
		<TrayButton popup="InternetArchive" icon="/usr/share/icons/internetarchive.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://archive.org/</TrayButton>
		<TrayButton popup="Linkedin" icon="/usr/share/icons/linkedin.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.linkedin.com/feed/</TrayButton>
		<TrayButton popup="EasyForum" icon="/usr/share/icons/puppy murga linux.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://forum.puppylinux.com/viewforum.php?f=63</TrayButton>
		<TrayButton popup="Twitter" icon="/usr/share/icons/blue_x.jpeg">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://twitter.com/home</TrayButton>
		<TrayButton popup="Instagram" icon="/usr/share/icons/instagramtranspar.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.instagram.com</TrayButton>
		<TrayButton popup="TikTok" icon="/usr/share/icons/blue_tiktok.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.tiktok.com</TrayButton>
		<TrayButton popup="YouTube" icon="/usr/share/icons/youtube.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.youtube.com/</TrayButton>
		<TrayButton popup="GoogleMaps" icon="/usr/share/icons/maps.png">exec:/files/portable/Slimjet-portable64/RUN  https://www.google.com/maps/@41.6273327,-0.9342984,15z?entry=ttu&g_ep=EgoyMDI0MTAyMi4wIKXMDSoASAFQAw%3D%3D/</TrayButton>
		<TrayButton popup="Pinterest" icon="/usr/share/icons/pinterest.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH https://es.pinterest.com/</TrayButton>
		<TrayButton popup="Amazon" icon="/usr/share/icons/Amazon-icon-in-flat-design-on-transparent-background-PNG.png">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH  https://www.amazon.es/</TrayButton>

That is, exec the opera LAUNCH file with the added site where it is supposed it must start.... doesn't work.

Only for you to know.

Thanks.

Attachments
wallpaper 14th January 2025.jpg
wallpaper 14th January 2025.jpg (60.58 KiB) Viewed 877 times

PP4MNK

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@pp4mnklinux :-

Mm-hm. Seems it's linked to the modified 'LAUNCH' script I've been using for the last few months.

It always 'bugged' me, the way I was using so many 'if....then' clauses to decide whether or not Opera should use 'LD_LIBRARY_PATH' for any given Puppy, so it knew to run with the included 'lib' directory. Or NOT.....

It looked messy & untidy to my eyes. I forget who it was now; one of our Puppy members suggested a way of condensing all those 'if....then' clauses into a short list by using the 'function' command. I tried it; it looked a lot tidier.....and it 'worked'. So I've used it ever since, and, indeed, have modified all the other Chromium 'clones' to use it too.

But it won't allow launching with a specific URL as its argument.

I pulled one of the older 'LAUNCH' scripts out of retirement, and did some quick experiments. The older one is quite happy to launch with a given URL. I haven't figured out what's causing this to happen yet - it'll take me a while! - but as a workaround you can substitute the old launcher for the existing one. It still functions as well as it always did; there's just more OF it..! :lol:

I've attached it below. Just remove the fake '.gz', and swap it over. I'd keep a copy somewhere safe; that way, you've always got it for future use.

Mike. ;)

Attachments
LAUNCH.gz
Original launcher for Opera-portable...remove fake ',gz', and substitute for the newer one.
(1.03 KiB) Downloaded 9 times
User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Wed Jan 15, 2025 12:33 pm

But it won't allow launching with a specific URL as its argument.

Because your code doesn't pass the URL to the browser :thumbdown:

If this is the code part in question I added the 2 missing $@ parameters. I suggest to NOT use quotation marks.
function run_opera {
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --force-device-scale-factor=1.3 --no-sandbox $@
}
#
if grep -q 'Quirky April64' /etc/DISTRO_SPECS ||
grep -q 'puppy_tahr64' /etc/os-release ||
grep -q 'puppy_xenialpup64' /etc/os-release
then
set_library_path
run_opera $@
else
run_opera $@
fi

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

mikewalsh wrote: Wed Jan 15, 2025 12:33 pm

@pp4mnklinux :-

Mm-hm. Seems it's linked to the modified 'LAUNCH' script I've been using for the last few months.

It always 'bugged' me, the way I was using so many 'if....then' clauses to decide whether or not Opera should use 'LD_LIBRARY_PATH' for any given Puppy, so it knew to run with the included 'lib' directory. Or NOT.....

It looked messy & untidy to my eyes. I forget who it was now; one of our Puppy members suggested a way of condensing all those 'if....then' clauses into a short list by using the 'function' command. I tried it; it looked a lot tidier.....and it 'worked'. So I've used it ever since, and, indeed, have modified all the other Chromium 'clones' to use it too.

But it won't allow launching with a specific URL as its argument.

I pulled one of the older 'LAUNCH' scripts out of retirement, and did some quick experiments. The older one is quite happy to launch with a given URL. I haven't figured out what's causing this to happen yet - it'll take me a while! - but as a workaround you can substitute the old launcher for the existing one. It still functions as well as it always did; there's just more OF it..! :lol:

I've attached it below. Just remove the fake '.gz', and swap it over. I'd keep a copy somewhere safe; that way, you've always got it for future use.

Mike. ;)

@mikewalsh THANKS A LOT.

With this LAUNCH modification/update Opera ROCKS again and it works as hell.

Fantastic, thanks a lot (I suggest to update the file with this modified LAUNCH, if possible)

Thanks again, I like this browser, althoug I use Slimjet, Firefox, Midori, Chrome and Chomium (depending on the pages)

Attachments
opera 115 .jpg
opera 115 .jpg (41.44 KiB) Viewed 649 times
Opera 115 working in EasyOS_15thJanuary2025.jpg
Opera 115 working in EasyOS_15thJanuary2025.jpg (137.62 KiB) Viewed 828 times
Last edited by pp4mnklinux on Thu Jan 16, 2025 1:35 pm, edited 1 time in total.

PP4MNK

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@MochiMoppel :-

D'ohh!! Oh, what am I like? :oops: I'm having "one of those days"; a 'senior' moment, I think. (They're coming to me sooner than I thought they would... *sigh* ) :roll:

Thank you for that simple bit of info, Mochi. This is the first time I've really used the function command in earnest; when the example I was provided with did what I wanted, I simply used it as-is.

It never occurred to me that the relevant commands further down would also need the "$@", too. Never mind; it's all part of the learning process.

Much appreciated, my friend. Thank you!

Mike. :)

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Opera-portable New release : Error When Playing Videos

Post by pp4mnklinux »

Hello everybody:

I was thinking about why I didn't use an opera version except 108, and today I remember why.

I have an error when playing videos. I can see them, but when I put my mouse on them, a blue line appears.

I don't know if this happens to you, let me know to see if it is my exclusive problem or it is a common error.

I included a video.- Hope you can watch it.-

Thanks a lot.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EDITED.- SOLVED.......

No worries.- I discovered that this line only appears when you activate the LUCID MODE (The blue circle that appears when watching videos)

N.B.-
Opera's "Lucid Mode" refers to a feature designed to enhance the browsing experience by providing more intuitive and clearer visual elements. This mode is particularly focused on increasing accessibility and readability for users, adjusting contrast, and optimizing the user interface to make it easier to navigate and interact with content.

However, "Lucid Mode" is not a widely recognized or commonly referenced term for mainstream Opera features. It might refer to a feature or experimental setting in specific versions of the Opera browser or could be associated with a particular plugin or extension designed to improve clarity and focus while browsing. For specific details, it's always a good idea to check the official Opera browser documentation or the settings menu to see if it is part of a new feature or an experimental option.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachments
Screenshot_2025-01-15_18-10-31.jpg
Screenshot_2025-01-15_18-10-31.jpg (23.12 KiB) Viewed 798 times

PP4MNK

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

About StartMaximized.

Hi, @MochiMoppel :

I see in your code that you include the start-maximized option when starting opera. I tried this option time ago with my direct links, but it never worked with opera, except when I configure the option "Retain tabs from previous session".

I tested this option with Opera 115 and the same happens.

Do you know what must I do to start opera maximiced when configured as in the attached photo?

Thanks in advance.

n.b.-

Code: Select all

		<TrayButton popup="telegram" icon="/usr/share/icons/telegram.jpeg">exec:/mnt/sda5/F96_XFCE_FUSILLI_4.4/Opera-portable64/LAUNCH --start-maximized  --new-window https://web.telegram.org/a/#83951423</TrayButton>

It doesn't work

Attachments
Screenshot_2025-01-15_19-51-27.jpg
Screenshot_2025-01-15_19-51-27.jpg (31.57 KiB) Viewed 782 times

PP4MNK

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

pp4mnklinux wrote: Wed Jan 15, 2025 6:55 pm

I see in your code that you include the start-maximized option when starting opera. I tried this option time ago with my direct links, but it never worked with opera, except when I configure the option "Retain tabs from previous session".

It's not my code, it's Mike's code and I already deleted the LAUNCH script after briefly looking at it yesterday, so I'm not sure what's in it.

@mikewalsh Who persuaded you to use the functions for your new LAUNCH script? I hope it wasn't me :D
They make no sense here and unnecessarily complicate the code. As I don't have the script anymore and don't want to download the whole package again, could you please post just the script so that I can explain?

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

MochiMoppel wrote: Thu Jan 16, 2025 1:35 am

Who persuaded you to use the functions for your new LAUNCH script? I hope it wasn't me :D
They make no sense here and unnecessarily complicate the code. As I don't have the script anymore and don't want to download the whole package again, could you please post just the script so that I can explain?

@MochiMoppel :-

Sure can. Here ya go:-

'Original'

Code: Select all

#!/bin/sh
#
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
#
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]#!/bin/sh
#
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
#
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF
#
mkdir -p /opt/google/chrome
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
mkdir -p "$HERE/PROFILE" 2> /dev/null
#
if  grep -q 'puppy_tahr64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
elif grep -q 'puppy_xenialpup64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
else
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
fi
#
rm -rf /opt/google
EOF
#
mkdir -p /opt/google/chrome
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
mkdir -p "$HERE/PROFILE" 2> /dev/null
#
if  grep -q 'puppy_tahr64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
elif grep -q 'puppy_xenialpup64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
else
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox "$@"
fi
#
rm -rf /opt/google

'Modified using function command' (and including your 'mod' above)

Code: Select all

#!/bin/sh
#
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
#
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF
#
mkdir -p /opt/google/chrome
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
mkdir -p "$HERE/PROFILE" 2> /dev/null
#
function set_library_path {
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
}
#
function run_opera {
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --force-device-scale-factor=1.3 --no-sandbox "$@"
}
#
ifgrep -q 'puppy_tahr64' /etc/os-release ||
	grep -q 'puppy_xenialpup64' /etc/os-release
then
	set_library_path
	run_opera $@
else
	run_opera $@
fi
#
rm -rf /opt/google

Please do, dear boy. Explain away; I'm ALL ears....

Mike. ;)

User avatar
Sky Aisling
Posts: 223
Joined: Wed Jul 22, 2020 7:59 pm
Has thanked: 192 times
Been thanked: 10 times

Re: Opera-portable - New release : v115.0.5322.119

Post by Sky Aisling »

Er, huh? Excuse me for repeating myself, but,...
Where do I find a workable Opera browser for Fossapup(64)?
Where is the download site?
I've read all the post after my first question and I am totally confused at this point.
Thank you in advance for any assistance.
Sky

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@Sky Aisling :-

Sorry, Sky. I thought my instructions were quite clear. You'll find it here:-

https://www.mediafire.com/folder/w8h3k5 ... a-portable

(EDIT: .......and following Mochi's observation below, the very first top line of post #1 will now also take you to the download if you click on it.)

Okay?

Mike. ;)

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Thu Jan 16, 2025 2:46 am

'Modified using function command' (and including your 'mod' above)

Code: Select all

...
ifgrep -q 'puppy_tahr64' /etc/os-release 

Introducing a new bug? :lol:
Should be 'if grep', with a space!

Regarding download site: @Sky Aisling has a point. I also struggled to find it. I always check the first post for newest updates, and this starts with

mikewalsh wrote: Sun Nov 22, 2020 5:43 pm

Current package:- Opera-portable 115.0.5322.119

This looks like a link.It isn't, but it should be one.

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@MochiMoppel :-

Yah, point taken about the download. I never thought about people mistaking the title line for an actual link.....so I've turned it into one.

The original link is still down near the bottom of post #1.......but IF anybody should click on that first line, it will also take them to the download. Must be me; I've never been used to a link being the very first thing I'm presented with. It's why people who post with nothing BUT a link get my goat, because you often have no idea what it is you're expected to click ON.

It's bad "nettiquette", too!

=======================

As for that line in the launcher, my bad; I copy/pasted it straight in last night, then performed a wee bit of editing before posting. Didn't notice the mistake! :oops: :)

Mike. ;)

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Thu Jan 16, 2025 10:53 am

IF anybody should click on that first line, it will also take them to the download.

Are you sure? It's still not a link.

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

MochiMoppel wrote: Thu Jan 16, 2025 11:16 am
mikewalsh wrote: Thu Jan 16, 2025 10:53 am

IF anybody should click on that first line, it will also take them to the download.

Are you sure? It's still not a link.

It is NOW.

Ah, I remember. I'd got it working from the preview.....but before I'd actually posted it, I took a de-tour & attended to something else that required a restart of 'X'. And that, of course, shut the browser down.

D'ohh..... Image Idjit!! :lol:

Anyways.....all sorted!

Mike. :oops: :D

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Sun Nov 22, 2020 5:43 pm

Currently available package is:- Opera-portable 115.0.5322.119

Have you noticed that the link now has a pale gray color instead of the previous red of your non-link? To make the link red you have to place the BB [​color] tag between the [​url] tag (i.e. around the description), not around the [​url]...[​/url] combo. All other tags seem fine when placed around them. Seems inconsistent, but nothing is perfect.

With inner [​color] tags it works:
Opera-portable 115.0.5322.119

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@MochiMoppel :-

Uh-huh. Gotcha.

Yeah, that's the way I usually do it....using bold, italic, size, colour, etc, inside the URL tags. I tried a different way earlier.....and when it came out grey, I thought "You know what? That's close enough. I can't be arsed to change it again!" :lol:

But of course, I'm something of a perfectionist in many ways, so.....I have. Things niggle me when they're not as I wanted 'em! :D

Cheers for the info.

Mike. ;)

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Thu Jan 16, 2025 2:46 am

'Modified using function command' (and including your 'mod' above)

Code: Select all

#!/bin/sh
#
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
#
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF
#
mkdir -p /opt/google/chrome
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
mkdir -p "$HERE/PROFILE" 2> /dev/null
#
function set_library_path {
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
}
#
function run_opera {
	"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --force-device-scale-factor=1.3 --no-sandbox "$@"
}
#
if grep -q 'puppy_tahr64' /etc/os-release ||
	grep -q 'puppy_xenialpup64' /etc/os-release
then
	set_library_path
	run_opera $@
else
	run_opera $@
fi
#
rm -rf /opt/google

Please do, dear boy. Explain away; I'm ALL ears....

You could simplify your code by removing the unnecessary functions like this:

Code: Select all

<snip>
mkdir -p "$HERE/PROFILE" 
if grep -q 'puppy_tahr64' /etc/os-release ||
	grep -q 'puppy_xenialpup64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --force-device-scale-factor=1.3 --no-sandbox "$@"
rm -rf /opt/google

I removed the 2> /dev/null from your mkdir line because mkdir normally produces no output anyway, but when it does it's an error message. Errors don't go away by hiding this message ;) . Makes debugging only harder.

The LD_LIBRARY_PATH stuff is only relevant for the grepped distros. This has to go into the if command, but the opera command applies to all, so needs no if condition.

If you like you can simplify the grep commands. By adding the E switch (extended regex) you need only a single grep. The vertical bars allow to search for strings puppy_tahr64 or puppy_xenialpup64 or whatever

The if command then would look like this:

Code: Select all

if grep -Eq 'puppy_tahr64|puppy_xenialpup64' /etc/os-release
then
	LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi

Thinking of it you don't even need if. This should do:

Code: Select all

grep -Eq 'puppy_tahr64|puppy_xenialpup64' /etc/os-release && LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

We are on the way to turn your LAUNCH into a one-liner :lol:

Last edited by MochiMoppel on Fri Jan 17, 2025 11:54 am, edited 1 time in total.
User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

@MochiMoppel , it is a nice modification, but I think it is not as useful as make opera start maximiced.

No one can do this, including opera developers.

Can you write the code to star opera in maximiced mode?

Thanks a lot.

PP4MNK

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

@pp4mnklinux Once again: This is not my code! The opera command with all its added options is the sole responsibility of @mikewalsh . I have no idea how useful they are or if they work at all. The included --start-maximized option is supposed to do what you want. Apart from that you may instruct your window manager to open Opera windows maximized. We had threads regarding the procedure in the past. IIRC the topic was to start Firefox maximized.

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

@MochiMoppel , excuseme my ignorance, I thouth that when you wrote the modified code it was yours.

Excuseme again, I must update my perception, ...

Have a nice day, and enjoy the weekend.

Cheers, PP4MNK :thumbup2:

p.d.- As you told me, I tried in the past to modify my windows manager to star opera maximiced ...

Code: Select all

<application class="opera">
    <maximized>yes</maximized>
</application>

( it is possible it was due to opera is used as portable and I must include the full path to this file, I don't know)

I tried with this code too:

Code: Select all

<StartupCommand>
    opera --start-maximized &
</StartupCommand>

... but I didn't obtain any result, so I asked you just in case you could do it another way, but if you are busy, don't worry, I can continue with small windows, ;)

Attachments
MOCHI.jpg
MOCHI.jpg (65.06 KiB) Viewed 545 times

PP4MNK

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

Re: Opera-portable - New release : v115.0.5322.119

Post by mikewalsh »

@MochiMoppel :-

Hm. O-kayyy....

I LIKE that! That looks so much neater & tidier, and.....it works, really well. So; this is the wrapper-script as it now stands. I'm all for simplification wherever possible:-

Code: Select all

#!/bin/sh
# Launcher for 'portable' Opera browser
#
export HERE="$(dirname "$(readlink -f "$0")")"
tee "$HERE"/opera/resources/ffmpeg_preload_config.json >/dev/null <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF
#
mkdir -p /opt/google/chrome
ln -s $HERE/opera/WidevineCdm /opt/google/chrome/WidevineCdm
#
mkdir -p "$HERE/PROFILE" 
#
grep -Eq 'puppy_tahr64|puppy_xenialpup64' /etc/os-release && LD_LIBRARY_PATH=$HERE/:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
"$HERE/opera/opera" --user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --force-device-scale-factor=1.3 --no-sandbox "$@"
#
rm -rf /opt/google

Some of the code can't really be changed. Seaside's tee stuff is necessary for auto-location of libffmpeg, since the Opera devs have hard-coded the thing, at build-time, to look for it in a very specific location.....and between us we found that the way seaside put that together was the ONLY workaround that was functional for us here in Puppyland!

As for the "--switch" options; mm. Thinking about it now, the --VaapiVideoDecoder is probably non-functional for most people. dimkr expounded on this point at length a while back when he was justifying WHY his Vanilla DPup was somewhat larger than some people were happy with. For modern systems to function AND perform the way folks expect today, a certain amount of additional Xorg & Mesa/OpenGL items need to be included.....and of course, you add things in, they ARE going to occupy more space. His reply was that the addition of this "extra" stuff will, in the long run, actually make life easier for the graphics sub-systems even on older hardware, despite that there's more code for them to run through.....because it will switch-in existing functionality that has largely been ignored by many devs over the years.

Since Puppy is still, even today, intended to keep older hardware useful AND give it a fighting chance of coping with increasing hardware demands, anything like this has got to be considered.

I "borrowed" that particular "--switch" from 'Marmaduke's' Ungoogled Chromium builds.....before I understood that he'd included the software that enables all this into his builds at compile time. I've been meaning to remove that "switch" for a while now; I guess this is as good a time as any, since it needs the matching system software to truly function as it should.....and most Puppies just don't have it.

===================================

A question, if I may? I've reached the stage where I know what 'pipes' do, and I understand what a single ampersand ("&") does in scripting; what does the double ampersand actually do? I've seen it used in various scripts a lot over the years, but I still don't really comprehend what it does...especially here. Does the second one 'reinforce' what the first one is doing, or what, exactly?

Mike. ;)

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

@mikewalsh , I think this double sing implies a condition. It's a logical operator that implies a second command that only happens if the first one succeed.

If something happend, then....

PP4MNK

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Opera-portable - New release : v115.0.5322.119

Post by MochiMoppel »

mikewalsh wrote: Fri Jan 17, 2025 2:02 pm

Some of the code can't really be changed. Seaside's tee stuff is necessary for auto-location of libffmpeg, since the Opera devs have hard-coded the thing, at build-time, to look for it in a very specific location.....and between us we found that the way seaside put that together was the ONLY workaround that was functional for us here in Puppyland!

I was wondering about this "tee stuff". Looks very odd: The tee command expressly writes stuff to a file AND to the screen, but then the code tells the system with >/dev/null that you do NOT want anything to be written to screen :?
I found that this "solution" is promoted at stackoverflow as a way to make "here documents" for readable.
Personally I would use an ordinary echo command for the task:

Code: Select all

echo "[
  \"${HERE}/opera/lib_extra/libffmpeg.so\"
]" > "$HERE"/opera/resources/ffmpeg_preload_config.json

but that doesn't look remotely as geeky and sexy as a here document :lol:

what does the double ampersand actually do? I've seen it used in various scripts a lot over the years, but I still don't really comprehend what it does...especially here.

Here it sets the LD_LIBRARY_PATH variable, but only if the preceding grep command was successful.
Grep lets the system know if it was successful (=found the strings 'puppy_tahr64' or 'puppy_xenialpup6') by sending a return value of 0. The expression after the '&&' operator interprets the return code and only springs into action when it sees a zero. If grep doesn't find anything, it returns 1 and LD_LIBRARY_PATH remains unchanged. You can find many examples and much better explanations on the internet, e.g. What is the purpose of "&&" in a shell command?

User avatar
pp4mnklinux
Posts: 1239
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 661 times
Been thanked: 321 times

Re: Opera-portable - New release : v115.0.5322.119

Post by pp4mnklinux »

Hi @MochiMoppel & @mikewalsh

Now, I have this launch script, I think it is optimized, but It is possible you want to make me any suggestion.-

Take a look at It if you want, please, and let me know any observation, plz (I included the --START-MAXIMIZED option, but as I said It doesn't work at all)

Have a nice day.

Code: Select all

#!/bin/sh
# Launcher for 'portable' Opera browser

# Define the directory of the Opera installation
export HERE="$(dirname "$(readlink -f "$0")")"

# Configure ffmpeg preload
cat > "$HERE/opera/resources/ffmpeg_preload_config.json" <<EOF
[
  "${HERE}/opera/lib_extra/libffmpeg.so"
]
EOF

# Link WidevineCdm (only if not already linked)
[ ! -L /opt/google/chrome/WidevineCdm ] && ln -s "$HERE/opera/WidevineCdm" /opt/google/chrome/WidevineCdm

# Ensure profile directory exists
mkdir -p "$HERE/PROFILE"

# Common Opera launch options
OPERA_OPTIONS="--user-data-dir=$HERE/PROFILE --enable-features=VaapiVideoDecoder --start-maximized --disable-infobars --no-sandbox"

# Set library path and launch Opera based on OS version
if grep -qE 'puppy_tahr64|puppy_xenialpup64' /etc/os-release; then
  LD_LIBRARY_PATH=$HERE:$HERE/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} "$HERE/opera/opera" $OPERA_OPTIONS "$@"
else
  "$HERE/opera/opera" $OPERA_OPTIONS "$@"
fi


Attachments
operalaunchbypp4mnk.jpg
operalaunchbypp4mnk.jpg (81.23 KiB) Viewed 425 times

PP4MNK

Post Reply

Return to “Browsers and Internet”