Aug 18

I have modified the Cyfix code for GUI integration and have split it into three functions. Interested developers can take a look at them here.

Part 1:
Declare the home directory. In my modified code I have declared CyfixDir="/tmp/Cyfix" but I assume it will eventually be changed to something more appropriate, like "/Applications/CyfixGUI.app/tmp".

Part 2 :
List the installed repositories via listrepos (code). User added repos are outputted in $CyfixDir/repo-user and default repos are outputted in $CyfixDir/repo-default.

Part 3:
Figure out a way to attach each checkbox’s status to their corresponding repository.

Part 4:
Write a loop that sends each selected repository to two functions, processurl() (code) and removerepo (code). Each repository should be removed before the next repository is sent for url processing.

So that’s the main procedure. The 7 points previously given in my proposal still stand. To reiterate the important ones:

  1. The app needs run as root.
  2. It should check for tools: Erica Utilities, gawk, grep, and gettext.
  3. It should show a popup to inform the user that Cydia must not be running.
  4. A loading/waiting screen isn’t a bad idea when generating the repo list.
  5. When removal is complete, a Reload Sources button should appear (in lieu of Respring, since a respring isn’t necessary).

4 Responses to “Available: Modified Cyfix code for GUI integration”

  1. I wonder why you needed to mod it ;)

    Is there no killall command for cydia? That would stop that popup.

  2. Well, for example you can run killall SpringBoard for a respring, and on Terminal on Mac that is how you end processes. I tried a few like killall Cydia(.app/cydia/cydia.app) and haven’t been lucky, but I am sure there is a way to do it.

Leave a Reply

preload preload preload
Content copyright © 2009 - 2010 Secretss except where otherwise stated. Powered by WordPress.