Ask / Submit
1

[Xperia X] Can't launch applications from Terminal [answered]

asked 2018-11-29 21:07:26 +0300

Direc gravatar image

I can't start applications from command line on my Xperia X running SFOS 3.0.0.8. Jolla 1 and Xperia XA2 Ultra both running 3.0.0.8 work, however. When I open Terminal, and try to run e.g. sailfish-browser I get the following error message:

[C] unknown:0 - Failed to create display (No such file or directory)

I compared the environment between Jolla1 and Xperia X, and found out the difference. On my Xperia X I have the following:

XDG_RUNTIME_DIR="/var/run/user/0"

There is no such folder, but /var/run/user/100000 does exist. On my Jolla 1 and Xperia XA2 I logically have the following:

XDG_RUNTIME_DIR="/var/run/user/100000"

That directory does exist.

When I try to run e.g. XDG_RUNTIME_DIR="/var/run/user/10000" sailfish-browser on my Xperia X, the application starts as expected.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Direc
close date 2018-12-02 11:19:34.131816

Comments

I have no problem in my Xperia X, and sailfish browser starts from Terminal using 'sailfish-browser'

carmenfdezb ( 2018-12-02 09:22:27 +0300 )edit

Thanks for commenting. I'll keep digging around my device to see what causes it.

Direc ( 2018-12-02 10:58:26 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-12-02 11:19:18 +0300

Direc gravatar image

I found the issue. I had export XDG_RUNTIME_DIR=/var/run/user/0 in my .bashrc file. Removing the line fixed the issue.

Now, if I could only remember why I added the line in the first place...

edit flag offensive delete publish link more

Comments

Got it. It was a workaround for launching File Manager as root.

Direc ( 2018-12-05 01:07:41 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2018-11-29 21:07:26 +0300

Seen: 248 times

Last updated: Dec 02 '18