Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login items bug #47

Closed
ghost opened this issue Oct 21, 2015 · 5 comments
Closed

Login items bug #47

ghost opened this issue Oct 21, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 21, 2015

Why do i have to fill in my password for 4 times each time when I log in?

screenshot 2015-10-21 20 47 46

@ghost
Copy link
Author

ghost commented Oct 22, 2015

This issue also occurs when I run cDock 2 manually.

@w0lfschild
Copy link
Owner

Because it's trying to install SIMBL and SIP is preventing it from doing so and the maximum times it asks before giving up is 4.

@ghost
Copy link
Author

ghost commented Oct 25, 2015

@w0lfschild but I have SIMBL installed and there is a bundle there (visible via EasySIMBL app).

@w0lfschild
Copy link
Owner

https://github.com/w0lfschild/cDock2/blob/master/cDock/cDock-GUI/cDock-Agent.app/Contents/Resources/simbl.sh

#! /bin/bash

myvar=1

simbl_check() {
    echo "SIMBL check #$myvar"
    if [[ $myvar < 5 ]]; then
        locSIMBL=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" /System/Library/ScriptingAdditions/SIMBL.osax/Contents/Info.plist)
        curSIMBL=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$simbl_inst"/Contents/Resources/SIMBL.osax/Contents/Info.plist)
        # echo -e "loc: $locSIMBL\ncur: $curSIMBL" > ~/Desktop/test.txt
        if [[ -e /Library/ScriptingAdditions/SIMBL.osax || ! -e /System/Library/ScriptingAdditions/SIMBL.osax || ! -e /System/Library/LaunchAgents/net.culater.SIMBL.Agent.plist || ! -e /Library/Application\ Support/SIMBL/Plugins || -h /Library/Application\ Support/SIMBL/Plugins ]]; then
            open "$simbl_inst"
            install_simbl
        elif [[ "$locSIMBL" != "$curSIMBL" ]]; then
            open "$simbl_inst"
            install_simbl
        fi
    fi
}

install_simbl() {
    # echo "But Beyonce had the greatest albumn of all time"
    inst_id1=$(ps ax | grep [c]Dock-Installer | sed -e 's/^[ \t]*//' | cut -f1 -d" ")

    # If dock has been restarted it will have a new ID
    while [[ $inst_id1 != "" ]]; do
        inst_id1=$(ps ax | grep [c]Dock-Installer | sed -e 's/^[ \t]*//' | cut -f1 -d" ")
        sleep .5
    done

    myvar=$(( myvar + 1 ))
    simbl_check
}

You can view the logs of the agent at "$HOME"/Library/Application\ Support/cDock/logs/agent.log

@ghost
Copy link
Author

ghost commented Oct 25, 2015

Sorry, this issue is with cDock 2.

@ghost ghost closed this as completed Oct 25, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant