I can't start it unless start it by root. When the administrator privileges is provided, everything is normal. However, it doesn't work when I use ordinary user.
Operating system:
manjaro 17.1.1 and kernel 4.14.13-1
Version of Telegram Desktop:
telegram-desktop 1.2.6-5
Log
`
QApplication: invalid style override passed, ignoring it.
(telegram-desktop:2389): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'
(telegram-desktop:2389): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(telegram-desktop:2389): GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(telegram-desktop:2389): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(telegram-desktop:2389): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(telegram-desktop:2389): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(telegram-desktop:2389): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(telegram-desktop:2389): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'
(telegram-desktop:2389): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(telegram-desktop:2389): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
(telegram-desktop:2389): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(telegram-desktop:2389): GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault (core dumped)
`
Did you use a manjaro package, or did you download telegram elsewhere / are running a non-packaged telegram?
It happens with all Manjaro packages, including those from the AUR. Further info in this Manjaro thread.
Actually, I found that if you run unset XDG_CURRENT_DESKTOP before running telegram-desktop, it will run smoothly. Just like #1774
I am using Manjaro Deepin.
So Telegram doesn't recognise "Deepin" as desktop, but does recognise null.
Telegram should have a base case when no known desktop is detected.
The mentioned error is in linux_desktop_environment.cpp.
@es20490446e What error? This code detects DE type from predefined list. If nothing matched it will be Type::Other for both empty XDG_CURRENT_DESKTOP and for some unknown value of it.
Yeah, it seems like that shouldn't be causing an issue - I'm using i3, so my XDG_CURRENT_DESKTOP is unset; if I manually set it to "Deepin", I get the same behaviour that I currently do - that is, Telegram works.
(I'm kinda curious as to why there's detecting of the current desktop/DE - I'm assuming to play nicely with some window switching stuff?)
@PandorasFox With tray icon and some other stuff..
Same problem here, if I unset XDG_CURRENT_DESKTOP or set it to xfce for example then, telegram launches fine
unset XDG_CURRENT_DESKTOP
or
XDG_CURRENT_DESKTOP=XFCE
Hey there!
We're automatically closing this issue since there was no activity in this issue since 405 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.
Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
(Please note that this is an automated comment.)
Most helpful comment
Actually, I found that if you run
unset XDG_CURRENT_DESKTOPbefore runningtelegram-desktop, it will run smoothly. Just like #1774I am using Manjaro Deepin.