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

Widget has lost all content - can't add scripts #10

Open
gkopff opened this issue Feb 3, 2015 · 9 comments
Open

Widget has lost all content - can't add scripts #10

gkopff opened this issue Feb 3, 2015 · 9 comments

Comments

@gkopff
Copy link

gkopff commented Feb 3, 2015

My widget has lost its contents - including the button to add further scripts.

screen shot 2015-02-03 at 5 02 18 pm
screen shot 2015-02-03 at 5 02 28 pm

Where is the data stored so that I might delete it?

@gkopff
Copy link
Author

gkopff commented Feb 3, 2015

I blew away an SQLite file under ~/Library/Application\ Support/NotificationCenter/ and a reboot later and it's come back to normal.

@gkopff gkopff closed this as completed Feb 3, 2015
@gkopff gkopff reopened this Feb 3, 2015
@gkopff
Copy link
Author

gkopff commented Feb 3, 2015

(Apologies for the open/close/open noise).

I got the ( i ) icon back by doing the above, but clicking on it resulted in it disappearing and the widget becoming non-functional again. There's no new SQLlite file under application support (who knows what I blew away ...).

How can I remove all saved settings so I can start again?

@gkopff
Copy link
Author

gkopff commented Feb 3, 2015

Removing ~/Library/Containers/org.samroth.Today-Scripts.Widget did the trick.

@gkopff gkopff closed this as completed Feb 3, 2015
@SamRothCA
Copy link
Owner

The settings file itself is located here:

~/Library/Containers/org.samroth.Today-Scripts.Widget/Data/Library/Preferences/org.samroth.Today-Scripts.Widget.plist

If you can recreate the issue and post the contents of that file, that'd be great!

@gkopff
Copy link
Author

gkopff commented Feb 3, 2015

Okay, here's the file (recovered from my trash). I had to convert it from the binary plist format to the XML format in order to paste it here. The plist editor didn't complain when I opened it, so it wasn't corrupted in any obvious way. Similarly, I've had a look at it, and nothing looks terribly out of place.

In any event, for your perusal, here's the plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Scripts</key>
    <array>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>tron alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 tron 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>sark alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 sark 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>dumont alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 dumont 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>flynn alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 flynn 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>bit alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 bit 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
    </array>
    <key>NCWidgetListViewController Show All</key>
    <true/>
</dict>
</plist>

I'll let you know if I can make the issue happen again in a repeatable fashion.

@gkopff gkopff reopened this Feb 3, 2015
@dofine
Copy link

dofine commented Mar 22, 2015

Same problem here with Yosemite 10.10.2 .
Either no info button or today-scripts lost all contents. Sometimes remove it from NC or reboot the system can make it work again...

@rnhmjoj
Copy link

rnhmjoj commented Mar 22, 2015

Everything gets deleted every couple minutes.
I think when it reloads the scripts.

@puranzhang
Copy link

I got pretty much the same issue as @gkopff did. I downloaded the zip file and unzip it in the "download" folder. Everything works fine until I moved the Today Scripts.app to "Application" folder. My scripts will disappear and I can no longer edit any settings of Today Scripts.

I use Yosemite 10.10.2.

@dogshead
Copy link

I have the same problem, I can't get the info button or any scripts to show

I'm on El Capitan beta 3 (I didn't tell you that)

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

6 participants