mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Support StartupNotify #1113
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#1113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sledgehammer999 on GitHub (Jan 26, 2014).
As far as I can tell qt doesn't handle Freedesktop's startup notifications specification. That means that we have to handle it ourselves. Luckily there is a reference implementation available and it is used by gtk by default. So that means that every distro should package it already.
eg debian: http://packages.debian.org/sid/libstartup-notification0-dev
I didn't check the license. I think it is BSD so we are ok with it.
(anyone wanting to implement this, go ahead)
@sledgehammer999 commented on GitHub (Jan 26, 2014):
On better inspection the COPYING file indicates that the lib is LGPL 2, so we're good to go.
@pmzqla commented on GitHub (Mar 6, 2015):
I think Qt5.4 solves this problem.
@sledgehammer999 commented on GitHub (Mar 9, 2015):
Any links to docs? Or are you just observing the "busy notification" during startup?
@pmzqla commented on GitHub (Mar 9, 2015):
http://doc-snapshot.qt-project.org/qt5-5.4/qx11info.html#nextStartupId
If I start qBt with
QX11Info::nextStartupId()returns "qBittorrent" and as soon as the main window appears, it returns an empty string.EDIT:
I will maybe see what happens with Gnome when I have time and see if the application hangs on start with
StartupNotify=true. (this was the problem, right?)@sledgehammer999 commented on GitHub (Mar 9, 2015):
As far as I remember yes, that was the problem.
Also we have corner case here: What happens if our instance doesn't display a window and just exits after passing info to the already running instance? Back in the day when I programmed with Gtkmm, it had a function that allowed the program to explicitly tell the windowing(?) system "I started ok, I've done my job". To my knowledge such a function isn't available in qt4. (I haven't searched qt5 yet).
@pmzqla commented on GitHub (Mar 9, 2015):
Gnome no longer hangs, no matter what's the value of StartupNotify (probably it was a bug that got fixed), however, with Qt5.4 the mouse stops spinning as soon as the main window appears, while with Qt4.8 it keeps spinning. I guess this confirms that 5.4 brought the support to startup notifications.
I honestly don't know. I might look into this.
@xavier2k6 commented on GitHub (May 23, 2025):
ANNOUNCEMENT!
For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:
Please select/click the 👍 &/or ❤
reactionsin the original/opening post of this ticket.Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
(new/existing contributors/developers are always welcome)
DO:
DO NOT:
(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)