jhass / nextcloud-keeweb

Integrate Keeweb into Nextcloud
Other
415 stars 49 forks source link

Use app icon as file icon for kdbx files #2

Open jhass opened 8 years ago

jhass commented 8 years ago

We assign a custom mimetype for kdbx files, it got to be possible to set a custom symbol for those then from within the app. Somehow.

caco3 commented 8 years ago

Those links should do it: https://docs.nextcloud.com/server/10/admin_manual/configuration_mimetypes/mimetype_aliases.html?highlight=mimetype https://docs.nextcloud.com/server/10/admin_manual/configuration_mimetypes/mimetype_mapping.html?highlight=mimetype

But for me it did not work :(

I tried: resources/config/mimetypemapping.dist.json

{
    "kdbx": ["application/msaccess"]
}
jhass commented 8 years ago

Well, for the app I would something automatic anyway, the admin having to configure it is too much trouble IMO.

caco3 commented 8 years ago

I would expect this could be done by the installer.

At least thats what the (outdated) GPX Viewer extended sais: https://apps.owncloud.com/content/show.php/GPX+Viewer+extended?content=168505

caco3 commented 8 years ago

BTW, this is the command in the nextcloud root folder I had to run after editing:

> php occ maintenance:mimetype:update-js
mimetypelist.js is updated

Also according to https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/occ_command.html#maintenance-commands-label there are some othe rcommands, but none seemed to make it to work :(

> php occ maintenance:mimetype:update-db
> php occ maintenance:mimetype:update-db --repair-filecache
nickvergessen commented 7 years ago

Well send a pull request to the server to just have the icon (and maybe the mimetype) all the time?

ghost commented 7 years ago

The icon should be an inverted app icon, as with GpxPod, not another (ugly) artwork.