You are here

Opera Browser Portable - Change Default Partner Content

8 posts / 0 new
Last post
Drazick
Offline
Last seen: 1 week 3 days ago
Joined: 2010-09-06 06:36
Opera Browser Portable - Change Default Partner Content

Hello,

I'm using Opera Browser.
The browser uses Local Google service which I want to switch to google.com.
I encountered this as the suggested solution:

http://superuser.com/questions/745989/change-google-co-uk-to-google-com

I found the file "default_partner_content.json" in 2 places:

OperaPortable\App\Opera\profile\data
OperaPortable\App\Opera\34.0.2036.25\resources

When I change it in "OperaPortable\App\Opera\34.0.2036.25\resources" it doesn't work.
When I change it in "OperaPortable\App\Opera\profile\data" I get an error one of the apk files is corrupted an Opera must be reinstalled.

Any way to make opera keep that change?
It seems something with te validation of the Portable Apps framework.

Thank You.

John T. Haller
John T. Haller's picture
Online
Last seen: 14 min 10 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
May Not Work

That answer is from 2 years ago and may no longer work. The answer is talking about editing the one within Opera itself (not your profile) so you'd edit the one in OperaPortable\App\Opera\version.number.x.y\resources

Sometimes, the impossible can become possible, if you're awesome!

Drazick
Offline
Last seen: 1 week 3 days ago
Joined: 2010-09-06 06:36
It Should Work

Hi,
I tried changing both (See my original post).
Changing "OperaPortable\App\Opera\version.number.x.y\resources" didn't do anything while on the Desktop Opera it does work.

I thought the Portable Apps framework override the software folder (The folder keeps the default, in "OperaPortable\App\Opera\profile\data" I have my personal profile).

Yet changing inside "OperaPortable\App\Opera\profile\data" yields the error I described above.

Could you please check it?

Thank You.

John T. Haller
John T. Haller's picture
Online
Last seen: 14 min 10 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No Changes

We don't make any changes to the files within App\Opera other than disabling the updater since it can cause issues portably. I was merely pointing out how to make the change to the proper file indicated by that web page. I have no idea if Opera supports it when done portably. The second file you are mentioning is NOT the one mentioned in the article. Your personal profile will be in OperaPortable\Data unless you accidentally crash Opera Portable or if you run it directly by associating it with files.

Sometimes, the impossible can become possible, if you're awesome!

Drazick
Offline
Last seen: 1 week 3 days ago
Joined: 2010-09-06 06:36
Hi,

Hi,
Look, the exact same file exist on both places:

OperaPortable\App\Opera\profile\data\default_partner_content.json
OperaPortable\App\Opera\34.0.2036.25\resources\default_partner_content.json

Why is it duplicated?

Thank You.

John T. Haller
John T. Haller's picture
Online
Last seen: 14 min 10 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
While Running

While running, your profile is moved from OperaPortable\Data\profile to OperaPortable\App\Opera\profile and back on exit. The profile, which is equivalent to the files in APPDATA on a local Opera install, is not what that web page said to edit it. So, it'll break if you try. They are NOT the same file. One is the default that is part of Opera itself. One is part of your profile (aka your user data). I have no idea why the web page says to edit the one that is part of Opera itself. All I did was point out where the specific version of the file you are looking for is.

Those profile files are only in App while Opera Portable is running. You should NOT edit any of these files while Opera Portable is running.

Sometimes, the impossible can become possible, if you're awesome!

Drazick
Offline
Last seen: 1 week 3 days ago
Joined: 2010-09-06 06:36
Hi John,

Hi John,
So I don't get it.

There is a file in the regular Opera Install called - default_partner_content.json.
In the regular installation it sits on "\Opera\(Version)\resources\".
Now, changing it have the effect I want, tested and working on regular Opera.

Now, on the Portable Edition the same file resides on 2 places:

OperaPortable\App\Opera\profile\data
OperaPortable\App\Opera\34.0.2036.25\resources

My question is, which one plays the role on the regular Opera version?

Thank You.

John T. Haller
John T. Haller's picture
Online
Last seen: 14 min 10 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Complete Details

I'll use as much detail as I can here. OperaPortable\App\Opera\34.0.2036.25\resources is what they are mentioning with Opera\(Version)\resources. You don't need to read any further than this. Your modification you are referencing may not work unless Opera is actually installed. You'd have to ask whoever made those unofficial instructions. I can't assist you further with that modification other than telling you which file in Opera Portable is equivalent to the one they are referencing. I am telling you here exactly which file to use, which is as much as I can do. If it doesn't work, I can't tell you why or how to make it work as I am not an Opera developer. I merely package it into PortableApps.com Format and make it more portable than the base Opera portable install is using our launcher to adjust paths within the profile.

If you are curious about what that other file is... meaning the other file that they are not referring to that you should not alter. I'll explain it in as much detail as I can here. Your Opera profile, which is equivalent to your Opera data within C:\Users\Username\AppData\Roaming\Opera, is located within OperaPortable\Data\profile. That profile is moved to \OperaPortable\App\Opera\profile\data while Opera is running. When Opera is closed, the profile is moved back to OperaPortable\Data\profile. The only reason those files would be in OperaPortable\App\Opera\profile\data when Opera is closed is if you either (1) crashed Opera Portable by the PC losing power or shutting down Windows without properly closing the app first which effectively crashes it or (2) run opera.exe directly instead of OperaPortable.exe or set it as your default browser within your app in which case it will run with a profile in that location. In either case, it is not the file that is being referenced by the above-mentioned link.

If you need additional help with this non-standard modification, you'll have to ask whatever page posted those unofficial guidelines.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments