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

MeshCentral Assistant Custom Logo #18

Open
iamkhris opened this issue Nov 20, 2021 · 10 comments
Open

MeshCentral Assistant Custom Logo #18

iamkhris opened this issue Nov 20, 2021 · 10 comments
Assignees
Labels
Fixed - Confirm & Close question Further information is requested

Comments

@iamkhris
Copy link

I was doing some testing with the MeshCentral Assistant today and when downloading the Connect on Request application, I see a random logo on the app that definitely should not be associated with it. I'm honestly not even sure how the logo got associated with MeshCentral.

Could you point me towards the config file that needs to be modified to adjust this?

@nicrame
Copy link
Contributor

nicrame commented Jan 7, 2022

Logo should be 128x128px size in png format (You may use alpha channel).
To configure the logo - You configure meshcentral server. Inside meshcentral/meshcentral-data/ You upload your new logo (for example mylogo.png), also You must edit config.json and add "assistantCustomization": {...} to Your domains:

{
 "settings": {
   ...
 },
 "domains": {
  ...
     "assistantCustomization": {
               "title": "Your window title",
               "image": "mylogo.png",
               "fileName": "assistantfilename"
               }
} 

@Ylianst Ylianst added Fixed - Confirm & Close question Further information is requested labels Jan 24, 2022
@nicrame
Copy link
Contributor

nicrame commented Jan 24, 2022

I can confirm it's working correctly.

@iamkhris
Copy link
Author

Sorry for the lack of follow up on this. I figured out what was going on. When I downloaded the .exe file, I also had a logo.png file in my Downloads folder. When I ran the .exe, it pulled this logo image and displayed it, which is why I was very confused because the logo that was being displayed was in no way associated with the .exe file. If there is a logo.png file seemingly in the same folder as the .exe when you run it, it will be displayed. I just tested and confirmed the behaviour again.

@nicrame
Copy link
Contributor

nicrame commented Jan 25, 2022

In my case same filename of logo that is in config file do not work. I was also trying logo.png and it also didn't work. Maybe this is because my filename is different than just default logo.png. What MeshCentral version do You use @iamkhris ?

@iamkhris
Copy link
Author

image

@nicrame
Copy link
Contributor

nicrame commented Jan 25, 2022

Could You update MeshCentral? Maybe this is happening with old version only.

@iamkhris
Copy link
Author

Could You update MeshCentral? Maybe this is happening with old version only.

Unfortunately no, as I run MeshCentral with TacticalRMM, and Mesh updates are dependent on TRMM updates.

@nicrame
Copy link
Contributor

nicrame commented Jan 26, 2022

Could You update MeshCentral? Maybe this is happening with old version only.

Unfortunately no, as I run MeshCentral with TacticalRMM, and Mesh updates are dependent on TRMM updates.

Ok, i will make test env later ant check MC 0.9.67, then let You know how it's working.

@nicrame
Copy link
Contributor

nicrame commented Jan 26, 2022

Could You update MeshCentral? Maybe this is happening with old version only.

Unfortunately no, as I run MeshCentral with TacticalRMM, and Mesh updates are dependent on TRMM updates.

I've installed MeshCentral 0.9.67 on clear RockyLinux 8.5 install.
Createst group for testing in MeshCentral, then downloaded Assistant.
When there is logo.png in the same directory, then it will be shown in Assistant window. Same for version 0.9.74 so i believe this is what happening by default.
Zrzut ekranu (527)

But when i edit config.json of MeshCentral, and add:
"assistantCustomization": {
"image": "mylogo.png",
}

in domain, then even if i setup "image": "logo.png", it will not load logo.png from it's directory.
Zrzut ekranu (528)

So the simplest solution is to add assistantCustomization with image inside config.json of MeshCentral.

The problem is, i do not know how "Tactical RMM" is working (i never used that software), and i'm not sure if You may edit config.json from it, or maybe You will have to do it manually on the server. Maybe Tactical RMM even restore config.json (regenerate it) with every update, who knows.

@Ylianst could You tell, that putting logo.png in the same directory that Assistant .exe file will be shown in its window is intended? If it is not, maybe You may somehow change it (logo.png is quiet popular filename, maybe something like meshcentral-logo.png would be more original).

EDIT: I've find out the line where Assistant is loading logo.ong and it is intented as one of the ways to customize logo.
I've prepared patch: #22 that change filename used from logo.png to meshcentral-logo.png.

@Ylianst
Copy link
Owner

Ylianst commented Jan 31, 2022

@nicrame Thanks for the patch. I just accepted it, but made a change. Instead of "logo.png" or "meshcentral-logo.png" being used, I changed it to "assistant-logo.png". This way, there is no brand in the logo name. Will be in MeshCentral v0.9.76.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed - Confirm & Close question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants