Ask Your Question
1

texstudio only runs as root on Fedora 24

asked 2016-06-27 03:53:33 -0500

nathan.huesken gravatar image

updated 2016-07-30 10:56:27 -0500

Hey,

After installing fedora 24 I want to start textstudio. Unfortantly, it works only with

sudo texstudio

Trying to start it as a normal user gives me:

texstudio 

(texstudio:19207): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(texstudio:19207): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(texstudio:19207): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(texstudio:19207): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(texstudio:19207): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(texstudio:19207): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(texstudio:19207): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(texstudio:19207): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'

(texstudio:19207): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(texstudio:19207): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(texstudio:19207): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(texstudio:19207): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

And then nothing happens.

Ideas? Thanks!

edit retag flag offensive close merge delete

Comments

I can confirm that you are not crazy, and that this issue is reproducible by installing Fedora 24, fully updating it, and then installing texstudio. Running it as a non-root user fails in the way you describe, and running it with sudo (or as root) works. I'm investigating, but I thought I'd post this for anyone out there who might want to reproduce this issue in a VM and try to resolve it as well.

bitwiseoperator gravatar imagebitwiseoperator ( 2016-07-30 10:55:37 -0500 )edit

Could anyone perhaps try to test installing qt5-qtstyleplugins and additionally test if the following command works. It would be great if anyone could check if this is installed in a newly created fedora 24 (Gnome).

 QT_STYLE_OVERRIDE=gtk2 texstudio
hannes gravatar imagehannes ( 2016-08-25 03:08:37 -0500 )edit

9 Answers

Sort by ยป oldest newest most voted
0

answered 2016-09-29 11:26:49 -0500

rommon gravatar image

This may help

dnf remove qgnomeplatform

as expressed in: https://ask.fedoraproject.org/en/ques...

edit flag offensive delete link more
0

answered 2016-07-30 02:08:55 -0500

hannes gravatar image

updated 2016-08-01 02:48:04 -0500

Could you perhaps try to change the texstudio style? It seems that the Gtk+ style is failing and perhaps it's working when using another one like "Fusion" or "default". I think it should be possible by editing

~/.config/texstudio/texstudio.ini Please look for the line X11\Style=GTK+ and change it to X11\Style=default. Hope this helps

edit flag offensive delete link more

Comments

YES! Thats it! Thank you very much!

eddie8 gravatar imageeddie8 ( 2016-08-10 09:59:18 -0500 )edit

Thank you! This worked for me

blazek gravatar imageblazek ( 2016-11-12 13:17:50 -0500 )edit

I have no such file as textstudio.ini in ~/.config/texstudio/

jaaf64 gravatar imagejaaf64 ( 2016-11-13 03:02:55 -0500 )edit
0

answered 2016-06-27 17:00:20 -0500

ssnow gravatar image

I've been running TeXstudio on Fedora since F17. I cannot seem to replicate your particular problem, and I only run it as a normal user without using sudo. Did you upgrade to F24 from F23? If so, did you change your display manager? Are you using Gnome with X or with Wayland?

(edit) OK, so I tried with Gnome on Wayland and I still cannot replicate your problem.

edit flag offensive delete link more

Comments

I made a fresh f24 install. I have this problem on 3 independent computers. Mmmh, of course all the setups are similar, but still ... I am not using wayland.

nathan.huesken gravatar imagenathan.huesken ( 2016-06-28 03:11:44 -0500 )edit

Perhaps it is a problem with QT on your new install. TeXstudio uses the QT libraries I believe, and the errors you have above would seem to be relevant to those libraries.

ssnow gravatar imagessnow ( 2016-06-28 09:42:54 -0500 )edit

Did some checking around TeXstudio support forums, and it seems there are some known issues with QT/Unity (QT 5.51 and 5.54 I believe specifically). Perhaps a downgrade of QT is in order.

ssnow gravatar imagessnow ( 2016-06-28 09:51:03 -0500 )edit
0

answered 2016-07-31 09:45:34 -0500

hannes gravatar image

Did you try to change the style of the GUI as I've described in https://ask.fedoraproject.org/en/ques...

edit flag offensive delete link more
0

answered 2016-09-06 16:34:54 -0500

Dr. J gravatar image

Working with a fresh install of Fedora 24 so had no existing working install to copy.

Initially tried to run as root and copy the .config/texstudio to my own .config/ directory, then change the owner and group. That didn't work.

I then ran it as root, changed the window manager to (default - i think, or something other than gtk+) then went though the same process. This seems to have worked, however, I did fiddle with other things in between (on of which might have worked). Could someone test?

edit flag offensive delete link more
0

answered 2016-07-19 22:15:32 -0500

I had the same problem, delete the texstudio folder inside the ~/.config folder, download the texstudio Linux AppImage, start the texstudio Linux AppImage, close it and try again with normal user. This worked for me.

edit flag offensive delete link more
0

answered 2016-09-13 18:41:25 -0500

same problem here, yet.

edit flag offensive delete link more
0

answered 2016-07-11 02:14:33 -0500

eddie8 gravatar image

updated 2016-07-11 03:26:36 -0500

Same problem here. During the beta-time of F24 texstudio worked fine. Since about the released version I have the same failure mentioned above.

edit flag offensive delete link more
0

answered 2016-10-26 12:48:06 -0500

Perfect! It's working. Thanks....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-06-27 03:53:33 -0500

Seen: 1,440 times

Last updated: Sep 29 '16