The exact algorithm use to determine the canonical application can't be shared, but it's an offline process that requires the application be in use for some time.
I spent a while trying to figure this one out. I tried everything you tried, and more, to no avail. Confusingly, the icon did work for a period of about a week, but then stopped showing up, leaving me even more confused as to whether it was something I had done.
I finally settled on sending our logo as the thumbnail as part of the file data payload, although that's not really a solution because the small icon is still the generic icon, and the thumbnail has its own problems transparent background shows up as a checkerboard background, scaling and cropping is probably different on different displays.
Finally, after we decided to admit defeat and publicly publish our integration in the Chrome web store, it started working, hopefully this time for good. They really ought to say in the docs that your web store listing needs to be public in order for the logo to show up. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to set Google Drive file icon for files saved by my app?
Ask Question. Asked 5 years, 3 months ago. Active 4 years, 8 months ago. Copy this link in your website:. How to attribute for other media? You can go Premium easily and use more than 5,, icons without attribution.
Get information here. You can only save 3 new edited icons per collection as a free user. Upgrade to save unlimited icons. Your collection is locked, you can upgrade your account to get an unlimited collection. This feature is only available for registered users. Login or register. Curated content. Sort by. Download whatever, cancel whenever. More info. How to attribute? The "Save to Drive" button JavaScript defines two button-rendering functions under the gapi.
If you disable automatic rendering you must call one of these functions by setting parsetags to explicit. If your web page supports a specific language, set the window. If not set, the user's Google Drive language is used. For available language code values, see the list of supported language codes. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.
For details, see the Google Developers Site Policies. Guides Reference Samples Support Switch to v2. Manage files and folders. Handle changes and revisions. Integrate with the Drive UI. Integrate Drive widgets into your web app. I have two computers and the second one just finished upgrading to Windows 10 from Windows 8. In both cases, the upgrade turned a nice picture based desktop shortcut icon for Google Drive into the generic white page with bent corner as my "new" icon. I right-click and left-click on Properties and click "Change Icon" and it says it can't find a particular file.
What can I do to make Windows 10 give me my icon back for Google Drive? All of the other icons remained intact through the upgrade. I realize this is small potatoes compared to some of the larger problems Windows 10 has given us consumers, but maybe it will be easier to fix for that very reason.
0コメント