Noitidart / Profilist

ff-addon: Profile manager for Australis
https://addons.mozilla.org/en-US/firefox/addon/profilist/?src=github
34 stars 1 forks source link

Issues of concern to Chinese users (portable firefox installation needs support) #12

Closed ghost closed 10 years ago

ghost commented 10 years ago

A Question: how to customize the location profiles.ini file? For example, I want to profile.ini file generation to D: \ firefox \ profiles.ini B Question: how to customize the location profiles directory? For example, I want to generate profiles directory to D: \ firefox \ profiles \

This is a very useful Firefox extensions, I am ready to promote Firefox users in China, but the two issues above will be somewhat hindered because most Chinese users to use a portable configuration, profiles appdata directory is not in the catalog, thanks for all your help this is a very great expansion!

Noitidart commented 10 years ago

Thanks man I just replied to your addon review.

This issue is two issues in one.

In reply to question A and B: You want this feature because you are running profilist out of portable firefox correct? Profilist uses the same profiles.ini that Firefox uses, so its probably a bug. So i'll look into this. Question though: If you open the profile manager of firefox in portable installation, which profiles.ini file does that use? D: \ firefox \ profiles \ is also the default profile directory for the portable installation correct? I think once I get profilist to support portable installations it will fix this.

To set real custom paths for profiles, meaning not the default profile directory of firefox installation, that is another issue, its an enhancement that i need to add.

ghost commented 10 years ago

http://www.huwuku.cn/attachment/firefox-images/20140506/66991399357291.jpg

http://www.huwuku.cn/attachment/firefox-images/20140506/56021399357291.jpg

Download portable launcher:http://www.huwuku.cn/attachment/firefox-file/20140506/13993575183752.zip

My DIY version:http://bbs.kafan.cn/thread-1700621-1-1.html

The above information gives you a reference, you can look forward to faster iterations, improvement, thank you

ghost commented 10 years ago

Currently in use is normal, but I hope prifiles.ini documents generated inside my portable directory (generate here D: \ Program Files (x86) \ Firefox\profiles.ini), rather than the system inside appdata directory (Not here C: \ user \ KingTung \ AppData \ Roaming \ Mozilla \ Firefox\profiles.ini), Operating system: win8.1

Noitidart commented 10 years ago

Hey man the two image links are broken. Thanks I'll download portable and work on this.

yajd commented 10 years ago

Hey @kingtung this is noit from my other account.

I worked on adding portable compatability, please test and let me know how it works out.

  1. Please install addon GitHub Extension Installer
  2. Go to latest version of Profilist on GitHub repository: https://github.com/yajd/Profilist/tree/patch-3
  3. Click on "Add to Firefox", this install this version to your Firefox, now open menu and stuff see if its working fine please
ghost commented 10 years ago

Well, as you said, I do it, if there are problems, back to you, thank you for your help


The above link is restored, you can now open

Noitidart commented 10 years ago

Thanks @kingtung please let me know if there are no problems too. That would be great so then I can bring over the changes to release branch.

ghost commented 10 years ago

I have made ​​some changes and now has normal use, I modified the bootstrap.js file, if not modified, it is not working http://bbs.kafan.cn/forum.php?mod=redirect&goto=findpost&ptid=1700621&pid=31281078

Noitidart commented 10 years ago

Thank you very much man for your super support! i will check it out right away and get back to you. do you have any skype or chat program?

ghost commented 10 years ago

In bootstrap.js file,

var customCreatePath = 0; / / 'C: \ \ Users \ \ 3K2KYC1 \ \ Desktop \ \ FirefoxPortable \ \ Data';

What is the role?

Noitidart commented 10 years ago

Hey man can you please copy and paste the sourcecode here, i cant copy it without getting weird spacing. I can't figure out how to register for site and quote your reply so i can copy it, as it's in different language.

Or better then copy, can you please fork my patch-3 and then update bootstrap.js there

That line is just to create the global var. I could simply do var customCreatePath;

ghost commented 10 years ago

So excited, it would be easier to communicate using skype

A few years ago, I already have skype account, but rarely use the most recent year, wait a bit, I now install skype,My skype id:china-kingtung

Wait for me a few minutes

Noitidart commented 10 years ago

Wow a sincere thank you, you are using a translator to talk to me. You are very great to make that effort!

ghost commented 10 years ago

Haha, you are also the developers will be very hard, I was with you, willing to serve you, I have installed SKYPE, what is your ID?

Noitidart commented 10 years ago

Hey man please help me by running this test:

  1. Install DevPrefs addon from here: https://addons.mozilla.org/en-US/firefox/addon/devprefs/
  2. Then press Shift + F4 this will open the scratchpad
  3. Then in the menu bar of the scratchpad window, go to Environment menu and set it to Browser
  4. Then copy and paste this into scratchpad:

    var DSP = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties);
    var keywords = [];
    var str = [];
    
    function doit() {
       for (var i=0; i<keywords.length; i++) {
           str.push('Keyword: "' + keywords[i] + '"');
           try {
              var methodFU = FileUtils.getFile(keywords[i], ['']);
               str[str.length-1] += '|FU = "' + methodFU.path + '"';
           } catch(ex) {
               str[str.length-1] += '|FU = "' + ex.message + '"';
           }
           try {
              var methodDS = DSP.get(keywords[i], Ci.nsIFile);
               str[str.length-1] += '|DS = "' + methodDS.path + '"';
           } catch(ex) {
               str[str.length-1] += '|DS = "' + ex.message + '"';
           }
       }
       console.log(str.join('\n'));
    }
    
    var keywords = [
       //http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsAppDirectoryServiceDefs.h
       'AppRegF',
       'AppRegD',
       'DefRt',
       'PrfDef',
       'current',
       'default',
       'DefProfRt',
       'DefProfLRt',
       'ARes',
       'AChrom',
       'APlugns',
       'SrchPlugns',
       'AChromDL',
       'APluginsDL',
       'SrchPluginsDL',
       'SHARED',
       'PrefD',
       'PrefF',
       'MetroPrefF',
       'PrefDL',
       'ExtPrefDL',
       'PrefDOverride',
       'ProfD',
       'ProfLD',
       'UChrm',
       'UsrSrchPlugns',
       'LclSt',
       'UPnls',
       'UMimTyp',
       'cachePDir',
       'BMarks',
       'DLoads',
       'SrchF',
       'XPIClnupD',
       'indexedDBPDir',
       'permissionDBPDir',
       //http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsDirectoryServiceDefs.h
       'Home',
       'TmpD',
       'CurWorkD',
       'Home',
       'Desk',
       'CurProcD',
       'XCurProcD',
       'XpcomLib',
       'GreD',
       'SysD',
       'Trsh',
       'Strt',
       'Shdwn',
       'ApplMenu',
       'CntlPnl',
       'Exts',
       'Fnts',
       'Prfs',
       'Docs',
       'ISrch',
       'DfltDwnld',
       'ULibDir',
       'UsrDsk',
       'LocDsk',
       'UsrApp',
       'LocApp',
       'UsrDocs',
       'LocDocs',
       'UsrIntrntPlgn',
       'LoclIntrntPlgn',
       'UsrFrmwrks',
       'LocFrmwrks',
       'UsrPrfs',
       'LocPrfs',
       'Pct',
       'Mov',
       'Music',
       'IntrntSts',
       'WinD',
       'ProgF',
       'DeskV',
       'Progs',
       'Cntls',
       'Prnts',
       'Pers',
       'Favs',
       'Strt',
       'Rcnt',
       'SndTo',
       'Buckt',
       'Strt',
       'DeskP',
       'Drivs',
       'NetW',
       'netH',
       'Fnts',
       'Tmpls',
       'CmStrt',
       'CmPrgs',
       'CmStrt',
       'CmDeskP',
       'CmAppData',
       'AppData',
       'LocalAppData',
       'PrntHd',
       'CookD',
       'DfltDwnld',
       'Docs',
       'Pict',
       'Music',
       'Vids',
       'Locl',
       'LibD',
       'XDGDesk',
       'XDGDocs',
       'XDGDwnld',
       'XDGMusic',
       'XDGPict',
       'XDGPubSh',
       'XDGTempl',
       'XDGVids',
       'DfltDwnld',
       'DrvD',
       //http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/nsUpdateService.js#76
       'GreD',
       'UpdRootD',
       'XREExeF',
       //http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/tests/shared.js#55
       'ProfDS',
       'ProfD',
       'GreD',
       'XCurProcD',
       'XREExeF',
       'UpdRootD',
       //http://mxr.mozilla.org/mozilla-release/source/xpcom/build/nsXULAppAPI.h
       'UAppData',
       'XREExtDL',
       'XREExeF',
       'started',
       'ProfDS',
       'started',
       'ProfLDS',
       'XRESysLExtPD',
       'XRESysSExtPD',
       'XREUSysExt',
       'XREAppDist',
       'UpdRootD',
       'UpdArchD',
       'OSUpdApplyToD'
    ];
    
    doit();
  5. Then click in browser and press Ctrl + Shift + J this will open the browser console
  6. In browser console, click on clear so it makes the browser console blank
  7. Then focus the scratchpad window and whil it is focused, press Ctrl + R this will run the script
  8. Then go back to the browse console window that we opend and then copy and paste all the contents into here please
  9. You can now uninstall DevPrefs addon

Thanks!

ghost commented 10 years ago

POST http://translate.google.com/translate_a/t [HTTP/1.1 200 OK 323ms] "Keyword: "AppRegF"|FU = "C:\Users\KingTung\AppData\Roaming\Mozilla\Firefox\registry.dat"|DS = "C:\Users\KingTung\AppData\Roaming\Mozilla\Firefox\registry.dat" Keyword: "AppRegD"|FU = "C:\Users\KingTung\AppData\Roaming\Mozilla\Firefox"|DS = "C:\Users\KingTung\AppData\Roaming\Mozilla\Firefox" Keyword: "DefRt"|FU = "D:\Program Files (x86)\Firefox\Firefox\browser\defaults"|DS = "D:\Program Files (x86)\Firefox\Firefox\browser\defaults" Keyword: "PrfDef"|FU = "D:\Program Files (x86)\Firefox\Firefox\defaults\pref"|DS = "D:\Program Files (x86)\Firefox\Firefox\defaults\pref" Keyword: "current"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]" Keyword: "default"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]" Keyword: "DefProfRt"|FU = "C:"[…] Scratchpad/1:30 ReferenceError: reference to undefined property newScrollPos.scrollTop codemirror.js:1393 POST http://translate.google.com/translate_a/t [HTTP/1.1 200 OK 251ms] GET http://message.tieba.baidu.com/i/msg/get_data [HTTP/1.1 200 OK 84ms] GET http://message.tieba.baidu.com/i/msg/get_data [HTTP/1.1 200 OK 90ms] POST http://translate.google.com/translate_a/t [HTTP/1.1 200 OK 182ms] GET http://message.tieba.baidu.com/i/msg/get_data [HTTP/1.1 200 OK 119ms] POST http://translate.google.com/translate_a/t [HTTP/1.1 200 OK 280ms] GET http://message.tieba.baidu.com/i/msg/get_data [HTTP/1.1 200 OK 101ms] GET http://message.tieba.baidu.com/i/msg/get_data [HTTP/1.1 200 OK 87ms]

Noitidart commented 10 years ago

Hey man please test this version out: https://github.com/yajd/Profilist/tree/patch-4

It should work without any modification :)

ghost commented 10 years ago

I found a problem, I created the name of the input configuration is king, but the list is displayed as unnamed profile 1, the directory is actually created livze3mr.Unnamed Profile 1, these two places to display all of the name = king and Path = [...] \ king profile yet? Congratulations to you, in addition, I did not find any problems, very intelligent, I do not need to modify files.

Noitidart commented 10 years ago

Woohoo it works no modification!! Thanks man for all your help.

Yep it is intentionally made to create random string then Unnamed Profile ### because that's how firefox natively does it.

I have to run to work but will chat with you tonight to learn more about the problem you are talking about. :)

ghost commented 10 years ago

No problem, now 23:36, I will rest at about 00:36

Anything you need , do not hesitate to tell me

Noitidart commented 10 years ago

Hey man I sent you that protable version, did you get a chance to test it? If it works let me know so I can make a ProfilistPortable release on AMO.

Noitidart commented 10 years ago

Ok man I'm pretty sure it's working fine so I created ProfilistPortable repo and closed this issue from there. I'll release on AMO now.

https://github.com/Noitidart/ProfilistPortable/commit/d460d3778c293a0070a4bbe989fcd194425ec5f9

AMO release: ProfilistPortable

Thanks again @kingtung for all your help.

ghost commented 9 years ago

Great improvement, friend. Recently too busy, do not toss Firefox, and therefore failed to timely feedback to you, I'm sorry, greetings to you and your family.

Noitidart commented 9 years ago

Thank you! :)