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

Improvements to data/terminator.desktop #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dmaphy
Copy link
Member

@dmaphy dmaphy commented May 18, 2020

I tried building an RPM from latest master and stumbled over some issues when running the desktop-file-install command for data/terminator.desktop:

+ desktop-file-install --dir=/home/dmaphy/rpmbuild/BUILDROOT/terminator-2.0-0.1.ec2d50cdgit.fc32.x86_64/usr/share/applications data/terminator.desktop
/home/dmaphy/rpmbuild/BUILDROOT/terminator-2.0-0.1.ec2d50cdgit.fc32.x86_64/usr/share/applications/terminator.desktop: error: file contains key "_Name" in group "Desktop Entry", but key names must contain only the characters A-Za-z0-9- (they may have a "[LOCALE]" postfix)
/home/dmaphy/rpmbuild/BUILDROOT/terminator-2.0-0.1.ec2d50cdgit.fc32.x86_64/usr/share/applications/terminator.desktop: error: file contains key "_Comment" in group "Desktop Entry", but key names must contain only the characters A-Za-z0-9- (they may have a "[LOCALE]" postfix)
/home/dmaphy/rpmbuild/BUILDROOT/terminator-2.0-0.1.ec2d50cdgit.fc32.x86_64/usr/share/applications/terminator.desktop: error: required key "Name" in group "Desktop Entry" is not present
Error on file "data/terminator.desktop": Failed to validate the created desktop file

Thus I've tried fixing these here plus I added the change we apply since years in the Fedora package (of which I am not sure if we can apply it generally):

-[NewWindow Shortcut Group]
+[X-NewWindow Shortcut Group]

@mattrose
Copy link
Member

I think the underscores("_") in front of Name and Comment are necessary for the intltool-merge stuff for localization. Can you put the underscores back?

@dmaphy dmaphy force-pushed the dmaphy/Improvements_to_desktop_file branch from bfbfe18 to be5cb2b Compare May 26, 2020 16:00
@dmaphy
Copy link
Member Author

dmaphy commented May 26, 2020

Yep. I've put those underscores back where they belong. :-)

@mattrose mattrose requested a review from lazyfrosch June 2, 2020 21:05
@mattrose
Copy link
Member

mattrose commented Jun 2, 2020

@lazyfrosch it looks to me like the following patch fixes things for Fedora, but Debian and Ubuntu work without it. At least when I look at the package in Ubuntu 20.04 I see: [NewWindow Shortcut Group] not [X-NewWindow Shortcut Group], and I know when building on Fedora, it doesn't work without the patch that @dmaphy is submitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants