I just used the Repository Importer to import the Change Home Page script.

I just used the Repository Importer to import the Change Home Page script. It works, but after a reboot, I must reset it again. Is there any way to have it load/run automatically upon boot and keep the same settings I had previously (it asks for the horizontal and vertical location of the new home page)?

PS: I need this for a wallpaper I’m using with KLWP (the wallpaper has 3 screens/pages). The home page is not the main wallpaper screen. Sorry if this made no sense, especially if you don’t have KLWP (I added it as addition info).

6 Commentsto I just used the Repository Importer to import the Change Home Page script.

  1. TrianguloY says:

    Hmm, the script uses an old setCell method that is not persistent. I never updated it…and your are the first to notice!

    To fix it manually, change the line 34 adding a ‘true’ parameter if you want the items to be moved while in vertical mode or ‘false’ if in landscape. Example in portrait.

    … ,http://cell.getBottom() – cellsY * moveY * yy, true );

    Now simply run the script once and the change should be permanent (no need to run the script again).

    This made me notice something…

    Pierre Hébert​​: I guess the getCell returns the cell of the current orientation, but what if you are in portrait and you want to get the cell in landscape? There is no getCell(boolean portrait).

  2. Tom D says:

    Thank you very much. I truly appreciate your help. I will try it out and let you know if it doesn’t work for some odd reason, although I doubt that will be the case. Again, my sincere gratitude.

  3. Tom D says:

    I seem to be having trouble with this. I see the setting above, but it’s not at line 34. I added the “true” portion to the selection, but it didn’t keep my settings from changing after a reboot. Any suggestions or could you tell me what I’m doing wrong? Thanks.

  4. Tom D says:

    This is the change I made (please see below). I’m assuming this is line 34. I believe it would be, but the first 6 lines have text in them (e.g. The purpose of the script)

    item.setCell(cell.getLeft() – cellsX * moveX * xx,cell.getTop() – cellsY * moveY * yy,cell.getRight() – cellsX * moveX * xx ,cell.getBottom() – cellsY * moveY * yy,true);

  5. TrianguloY says:

    The change is correct. However if you reboot just after running the script, the launcher doesn’t have time to save it.

    To ensure it is saved, add this new line at the end of the script:

    LL.save();

  6. Tom D says:

    Lol. You know. That’s probably what happened. I tried it again but didn’t reboot. It worked. My sincerest gratitude.

Leave a Reply

Your email address will not be published. Required fields are marked *