-
Notifications
You must be signed in to change notification settings - Fork 663
Debugging Overlay Icons
Jocelyn Turcotte edited this page May 3, 2016
·
12 revisions
The installer will install a COM component that holds an Explorer plugin (ShellExtensionHandler
) to display overlay icons. Once installed, it will listen on a named pipe. Once a client connects, it will inquire about the state of the icon.
- Check if you didn't unselect the overlay icons during installation
- Check if the ownCloud Desktop Client is running and is properly set up
- Try to restart explorer.
- Download ShExtView and check for entries such as
OCError
orOCOK
. - Open
regedit.exe
, checkHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
. It should contain entries starting inOC
(such asOCError
,OCErrorShared
,OCOK
orOCOKShared
all with spaces in front). - Check for keys
{0960F090-F328-48A3-B746-276B1E3C3722}
through{0960F097-F328-48A3-B746-276B1E3C3722}
inHKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
.
If 5. and 6. are do not exist, start an elevated cmd.exe
(right click, "Run as Administrator"). and type regsvr32 C:\ownCloud (x86)\ownCloud\ext\OCOverlays_x64.dll
(on 64 bit Windows) or regsvr32 C:\ownCloud (x86)\ownCloud\ext\OCOverlays_x86.dll'
(on 32 bit Windows).
- Open shell_integration/MacOSX/OwnCloud.xcworkspace
- Make sure that the FinderSyncExt scheme is selected at the top (SyncStateFinder is for the <10.10 extension)
- Press play in XCode and select Finder as the app to run
- Make sure that your client is running
- The OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX User-Defined build setting of the FinderSyncExt target should match the one set for the client through cmake. By default both are empty, allowing you to load the extension without a Deverloper ID certificate. This however means that you can't mix the official build's client and extension binaries. You have to build both yourself and if you changed it in cmake, you need to change it manually in XCode as the normal build process passes this information through xcodebuild.
- Pressing the play button involves registering the built plugin and telling Finder to load it. This however doesn't always work well after running a few times in a row. In case of issue you can try:
-
killall Finder
before pressing play usually helps - Make sure that your extension is listed and enabled in the Preferences / Extensions pane.
- The
pluginkit
command line can be used to force the registration of the extension if you built it outside of XCode. XCode should however already take care of that step. The extension will run in a secondary process, so killing that process can also help if killing Finder wasn't enough. - Use a different "app to run" than Finder (for example TextEdit) and test that the icons work properly through the application's Open dialog. This allows you to restart the application each time at least.
- Watch the Console for any error if it still doesn't work. The main break issue when dealing with codesigning is usually the NSConnection::connectionWithRegisteredName call, so put some debug output or a breakpoint in the failure case if you need to investigate further.
tbd
☁️