Available: Modified Cyfix code for GUI integration
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 declaredCyfixDir="/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-userand 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:
- The app needs run as root.
- It should check for tools: Erica Utilities, gawk, grep, and gettext.
- It should show a popup to inform the user that Cydia must not be running.
- A loading/waiting screen isn’t a bad idea when generating the repo list.
- When removal is complete, a Reload Sources button should appear (in lieu of Respring, since a respring isn’t necessary).
I wonder why you needed to mod it
Is there no killall command for cydia? That would stop that popup.
There is o.o
o.o
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.