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

Change icon name on Linux for icon theme compatibility #62650

Merged
merged 7 commits into from
Mar 15, 2019
Merged

Change icon name on Linux for icon theme compatibility #62650

merged 7 commits into from
Mar 15, 2019

Conversation

beruic
Copy link

@beruic beruic commented Nov 6, 2018

This change is made under the assumption that the '-oss' part is removed for final official distribution builds.

The issue it resolves can be read about here: numixproject/numix-core#2964

Fixes #65750

This change is made under the assumption that the '-oss' part is removed for final official distribution builds.

The issue it resolves can be read about here: numixproject/numix-core#2964
@msftclas
Copy link

msftclas commented Nov 6, 2018

CLA assistant check
All CLA requirements met.

@wmyhen6
Copy link

wmyhen6 commented Nov 7, 2018

Unable to open

@beruic
Copy link
Author

beruic commented Nov 7, 2018

@wmyhen6 what is it that you are unable to open?
Is it the issue I refer to?
My repository?
Something else?

@Tyriar
Copy link
Member

Tyriar commented Dec 3, 2018

Thanks for the PR but this is not all that would be involved in changing this and it could have knock on effects for some other projects. Seems to me like numix should just add a code icon numixproject/numix-core#2964 (comment)

I opened discussion when I joined the team about changing the command from code to vscode to avoid potential conflicts, but at that point it was already too late. Now we're aligning things with the command name, and there haven't been any conflict issues to my knowledge.

@beruic
Copy link
Author

beruic commented Dec 3, 2018

@Tyriar I see no reason to rename the command. This PR is only to rename the the icon name in the generated .desktop files.

@Tyriar
Copy link
Member

Tyriar commented Dec 4, 2018

The same concerns exist for the name though, and they turned out not to be a problem. Changing the icon alone would cause work for us and other teams and I don't think it's worth it when numix can just use "code".

@Foggalong
Copy link

@Tyriar The point has been touched on in other issues but to recap for here, the Icon=code is too generic to be reasonably covered by an icon theme. Other applications use that icon name as a call for a generic icon representing code, editors, etc. If we make an icon representing VS Code specifically called code.svg then it will show up in other applications when a call for the (generic) icon with that name is made. The solution we (and a few other theme creators) have gone with for now is to make code.svg a link to the generic text editor icon, but it's understandably left the Linux users of VS Code a bit miffed.

@Tyriar
Copy link
Member

Tyriar commented Dec 4, 2018

Other applications use that icon name as a call for a generic icon representing code, editors, etc.

@Foggalong do you have an example of one of these?

@bilelmoussaoui
Copy link

The new freedesktop standards asks dev's to use a RDNN for the desktop file name and the icon name to avoid this kind of issues. Please don't change the icon to yet an other name and follow the specs.

@Foggalong
Copy link

@Tyriar The topic of VS Code's name has come up that many times across that many different Numix repos now that I'll be dammed if I can find the one which had the examples in it. Admittedly I'd imagine it's less of a problem now than when VS Code first came out because other devs will now avoid the generic name to avoid conflict with VSC, but there'll always be some legacy applications which won't switch.

To clarify on what @bilelmoussaoui said (because the terminology used wasn't clear to me), this is an example for VS Code of the Freedesktop icon name standard. It ensures that even if too installed applications have the same name, icon name, etc there won't be a conflict in files.

@Tyriar
Copy link
Member

Tyriar commented Dec 27, 2018

Sounds good, I opened #65750 to track this. It needs a bit more work though, mostly in our product build. I don't have time to look into it just now though.

@Foggalong
Copy link

@Tyriar Thank you so much for looking into this further!

@Tyriar Tyriar requested a review from joaomoreno March 11, 2019 18:50
@Tyriar Tyriar added this to the March 2019 milestone Mar 11, 2019
@Tyriar
Copy link
Member

Tyriar commented Mar 11, 2019

@joaomoreno I think this is ready to go, let me know if you see any problems with it. There's a corresponding commit to distro in the tyriar/62650-linux-icon branch

Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run a build and everything works OK, then this lgtm.

@beruic
Copy link
Author

beruic commented Mar 15, 2019

Can anyone determine which is the right solution to the current merge conflict?

@Tyriar
Copy link
Member

Tyriar commented Mar 15, 2019

@beruic I'll be merging this today, it will finally happen this milestone 😉

@Tyriar Tyriar merged commit 3207ea3 into microsoft:master Mar 15, 2019
@joaomoreno joaomoreno mentioned this pull request Mar 18, 2019
@beruic beruic deleted the patch-1 branch March 18, 2019 13:31
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use com.visualstudio.code* for Linux icon
7 participants