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

net-im/telegram-desktop-bin: exclude from session management #9366

Closed

Conversation

henning-schild
Copy link
Contributor

The application seems to register with the X11 session manager but fails
to follow the protocol for remembering its state. The result is that a
session manager will restart it, and during that process the command
line argument for disabling the internal updater gets lost.
So on a restarted session the updater will be enabled again.

Do not let the application register at the session manager in the first
place, by unsetting the env variable used to find it.

Closes: https://bugs.gentoo.org/662330
Signed-off-by: Henning Schild henning@hennsch.de

@gentoo-bot
Copy link

Pull Request assignment

Areas affected: ebuilds
Packages affected: net-im/telegram-desktop-bin

net-im/telegram-desktop-bin: @henning-schild, @NP-Hardass, @gentoo/proxy-maint

Bugs linked: 662330

In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

@gentoo-bot gentoo-bot added self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Jul 28, 2018
into /usr/lib/${PN}
newbin "${S}/Telegram" ${PN}
into /usr
newbin "${FILESDIR}"/${PN}-${PR} "telegram-desktop"
Copy link
Member

Choose a reason for hiding this comment

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

Double space!

S="${WORKDIR}/Telegram"

src_install() {
into /usr/lib/${PN}
Copy link
Member

Choose a reason for hiding this comment

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

This is not a valid use of into. Please use exeinto/doexe instead.


src_install() {
into /usr/lib/${PN}
newbin "${S}/Telegram" ${PN}
Copy link
Member

Choose a reason for hiding this comment

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

Don't use absolute path (${S}) when it's the current directory.

@henning-schild henning-schild force-pushed the henning/staging3 branch 2 times, most recently from 05308d8 to 4b29069 Compare August 12, 2018 16:13
src_install() {
exeinto /usr/lib/${PN}
newexe "Telegram" ${PN}
into /usr
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to set the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was a leftover from the previous "into"


src_install() {
exeinto /usr/lib/${PN}
newexe "Telegram" ${PN}
Copy link
Member

Choose a reason for hiding this comment

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

Why are you renaming it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, we can keep that name, left it and changed the wrapper

src_install() {
exeinto /usr/lib/${PN}
doexe "Telegram"
newbin "${FILESDIR}"/${PN}-${PR} "telegram-desktop"
Copy link
Member

Choose a reason for hiding this comment

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

Please don't use PR here. This is going to cause trouble in the future, quite likely with someone going back to -r0 on next bump.

SLOT="0"
KEYWORDS="~amd64 ~x86"

QA_PREBUILT="usr/lib/${PN}/bin/${PN}"
Copy link
Member

Choose a reason for hiding this comment

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

You didn't update this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, sorry that was caused be the other changes, hopefully that is it now

Thanks for the thorough reviews!

The application seems to register with the X11 session manager but fails
to follow the protocol for remembering its state. The result is that a
session manager will restart it, and during that process the command
line argument for disabling the internal updater gets lost.
So on a restarted session the updater will be enabled again.

Do not let the application register at the session manager in the first
place, by unsetting the env variable used to find it.

Closes: https://bugs.gentoo.org/662330
Signed-off-by: Henning Schild <henning@hennsch.de>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2018-08-17 05:56 UTC
Newest commit scanned: 9e80244
Status: ✅ good

No issues found

@mgorny
Copy link
Member

mgorny commented Aug 17, 2018

Thanks!

@henning-schild henning-schild deleted the henning/staging3 branch August 17, 2018 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
4 participants