Bug 467205 - -v doesn't print anything if tokodon is already running
Summary: -v doesn't print anything if tokodon is already running
Status: RESOLVED FIXED
Alias: None
Product: Tokodon
Classification: Applications
Component: general (show other bugs)
Version: 23.02.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-11 16:16 UTC by Hugo Osvaldo Barrera
Modified: 2023-03-12 23:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Osvaldo Barrera 2023-03-11 16:16:45 UTC
SUMMARY
 
tokodon --version doesn't work either.

STEPS TO REPRODUCE
1. tokodon --version or tokodon -v

OBSERVED RESULT

Nothing is printed, exit code success.


EXPECTED RESULT

The version

SOFTWARE/OS VERSIONS
Linux: Alpine
Qt Version: 5.15.8

ADDITIONAL INFORMATION

My guess is that the single-instance check kicks in before checking if --version was specified
Comment 1 Carl Schwan 2023-03-12 23:36:57 UTC
Git commit ec7565a0ee59b6e45170192d50d7b8d753b7af72 by Carl Schwan.
Committed on 12/03/2023 at 23:36.
Pushed by carlschwan into branch 'master'.

Fix -v arg not working when tokodon is already running
Signed-off-by: Carl Schwan <carl@carlschwan.eu>

M  +8    -8    src/main.cpp

https://invent.kde.org/network/tokodon/commit/ec7565a0ee59b6e45170192d50d7b8d753b7af72