johnno1962 / InjectionApp

Issue Tracking Repo for Injection as an App
MIT License
111 stars 7 forks source link

Menu bar icon not visible #19

Closed plam4u closed 7 years ago

plam4u commented 7 years ago

Hi there,

I've installed the standalone app and I wanted to test if the injection works but the icon that should appear in the menu bar from which I tap "Inject Source" doesn't appear at all.

Can I run the injection without the app being available in the menu bar? I've tried System Preferences > Keyboard > Shortcuts but it doesn't seem to work.

johnno1962 commented 7 years ago

Odd, I can TeamViewer if you like please send the co-ords to injection at johnholdsworth.com

johnno1962 commented 7 years ago

Did you run the App ?

plam4u commented 7 years ago

I did a workaround and now it works for me.

I created an Automator script and I execute this script: /Applications/Injection.app/Contents/Resources/injectSource

Then I added shortcut to the Service that I just created.

To answer your previous questions: yes, I was running the app.

This will work for me for now. But when I have a timeslot, I would definitely like to have a call with you and resolve it and use the officially suggested way of working with the standalone app.

johnno1962 commented 7 years ago

All I can thinnk of is there isn’t enough space on your menu bar as this hasn’t been reported before nor has anything changed. Let me know if you find out what the problem is (or not)

plam4u commented 7 years ago

Thank you, John. When I have updates on the menu bar issue, I'll update this thread.

plam4u commented 7 years ago

Hey John,

I've restarted my computer and now I see the icon together with the icons for Karabiner (see attached image). On the screenshot you can see that there are 2 square icons and the Injection App icons separated from the rest of the icons. They appear randomly on different position after restart of the computer. These icons for Karabiner usually disappear (I don't know when or why). But since the Injection icon is there, I'm sure it will disappear at some point as well.

The issue with the menu bar started since I updated to OS X Sierra.

Edit: another observation is that the icons move to the left until they disappear. The movement is triggered by selecting a window on a different monitor. I have a 2 monitor setup and every time I focus something on the other monitor I see the icons move to the left towards ".... Window | Help" menu items.

2017-03-09_19-16-22

johnno1962 commented 7 years ago

Did you file a radar :)

plam4u commented 7 years ago

No, I've never have done anything like that - reporting issues. Actually, the first time I report anything is this library. I really care about it and I want to make sure that it works.

plam4u commented 7 years ago

Not sure if it's related but Injection is stuck. It keeps rebuilding a file that I haven't changed since the morning. I tried the method using Notification Center and I can detect the injection in the file that I actually work on.

Maybe it's related to a different thing. I have Xcode 7 and Xcode 8 for the project since I have to support some stuff that are old.

Should I create another issue? I've tried to search for a similar question in the other Open and Closed issues but I don't find information about that.

johnno1962 commented 7 years ago

I can TeamViewer if you like please send the co-ords to injection at johnholdsworth.com

plam4u commented 7 years ago

Thank you John for the quick help.

SOLUTION: The quick fix is to CMD+Drag the icon and stick it together with the other icons. Once done, the icons stop moving to the left till they disappear.

The issue still exists for OS X but at least we have a way to continue using our apps.

plam4u commented 7 years ago

John,

quick comment for the double-injection issue.

Things I've tried that do NOT work:

What works is to reset the simulator, it stopped double-injecting.

EDIT: One more thing that I should add is that the injection notification INJECTION_BUNDLE_NOTIFICATION was executing the "-injected" method. It's possible that both the notification and the "-injected" were executed.

johnno1962 commented 7 years ago

Ahhh, mystery solved ! -injected and the notification are separate.