Help solve the issue with the use of Prepros in Kubuntu.

When launched from the shell, all functions work fine, except Live Preview. The message "Connected to localhost" appears. And everything hangs until canceled.

When you start from the console, nothing happens.

$ sudo ./Prepros [sudo] пароль для oem: (electron) ipc module is deprecated. Use require("electron").ipcMain instead. (electron) app.getDataPath is deprecated. Use app.getPath instead. 

How to fix? What is the reason?

  • and sudo you write for "a bunch of words in a sentence"? - aleksandr barakin
  • Lines that begin with (electron) clearly not sudo prints, so the Prepros have started. - jfs

1 answer 1

When you start from the console, nothing happens.
$ sudo ./Prepros

in fact, nothing should happen.

you are trying to execute a program that you need to draw (at least one) “window” using the x-server , but at the same time launching it on behalf of another user (in this case, the root user ).

another user, of course, will not be able to connect to your x-session .

Yes, in principle, it is possible to provide another user with such an opportunity at least for the duration of the current x-session , but in this case there is not the slightest need. just run the program on your behalf:

 $ ./Prepros