Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-04-02 09:34:55

whitesnow
Member
Registered: 2017-04-02
Posts: 5

Desktop freezes after "Run Program" xfce4-appfinder --collapsed

Hello,

usually I'm a happy xfce4 user.

But from time to time I happen to hang the system by using the "Run Program" button in the Applications Menu.

So this opens a window named "Application Finder", running the program

xfce4-appfinder --collapsed

.

When keying in something like

sudo mousepad

, it repeatedly happens to hang/freeze the whole Desktop.

I can still move the mouse and can change to another console, but on the Desktop I can't do anything.

Killing this xfce4-appfinder, sometimes possible, does not resolve the situation.
Up to now, I did not find another solution beside killing the whole xfce4-session / Xorg Session.

kind regards

edit:

NAME% uname -a
Linux NAME 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux
NAME% xfce4-about --version
xfce4-about 4.12.1 (Xfce 4.12)

Copyright (c) 2008-2015
	The Xfce development team. All rights reserved.

Please report bugs to <http://bugzilla.xfce.org/>.
Translators list from 2015-03-15 16:44:46.

Last edited by whitesnow (2017-04-02 09:38:42)

Offline

#2 2017-04-02 10:09:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

Hello and welcome.

whitesnow wrote:

When keying in something like

sudo mousepad

, it repeatedly happens to hang/freeze the whole Desktop.

You should never use sudo with graphical programs - it can cause problems. Use gksudo or pkexec instead.

But from time to time I happen to hang the system by using the "Run Program" button in the Applications Menu.

So this opens a window named "Application Finder", running the program

xfce4-appfinder --collapsed

.

Check your xsession logs to see if anything is displayed when this happens. Also try running it in a terminal to see if any error messages are displayed.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2017-04-02 11:14:30

whitesnow
Member
Registered: 2017-04-02
Posts: 5

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

Thank you,

the logs are quite long, don't know, if I should post them.

Also try running it in a terminal to see if any error messages are displayed.

In terminal it works. Returns the focus to the terminal, and asks for password.

From xterm it does not. It does not return to the xterm.
Instead it looks like this:

 testuser@NAME: xfce4-appfinder --collapsed
 testuser@NAME:

Where from terminal:

 testuser@NAME: xfce4-appfinder --collapsed
[sudo] password for testuser:

maybe it's this one in

/home/testuser/.local/share/xorg/Xorg.2.log
[165669.912] (II) AIGLX: Suspending AIGLX clients for VT switch
[165669.918] (II) systemd-logind: got pause for 13:68
[165669.918] (II) systemd-logind: got pause for 13:67
[165669.918] (II) systemd-logind: got pause for 13:79
[165669.918] (II) systemd-logind: got pause for 13:70
[165669.918] (II) systemd-logind: got pause for 13:78
[165669.918] (II) systemd-logind: got pause for 13:64
[165669.918] (II) systemd-logind: got pause for 226:0
[165669.918] (II) systemd-logind: got pause for 13:66
[165669.918] (II) systemd-logind: got pause for 13:77

but, still, it should not block the whole session.

I saved the files, /home/testuser/.xfce4-session.verbose-log and /home/testuser/.local/share/xorg/Xorg.2.log, but they are quite long, don't know for sure, if I should post them.

Well, maybe the last couple of lines:

.xfce4-session.verbose-log
TRACE[xfsm-properties.c:629] xfsm_properties_set_from_smprop(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (Program, xfce4-terminal)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (UserID, testuser)
TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (RestartStyleHint, 0)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (ProcessID, 7096)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (CurrentDirectory, /home/cbra)
TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 50)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (_GSM_DesktopFile, /usr/share/applications/xfce4-terminal.desktop)
TRACE[xfsm-properties.c:629] xfsm_properties_set_from_smprop(): -> Set strv (CloneCommand)
TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 275d6febf-ee8b-4f9b-a0d9-7f0beae3a56b, received SAVE YOURSELF DONE [Success = True]

TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): enteringTRACE[sm-layer.c:162] sm_new_client(): ICE connection fd = 19, received NEW CLIENT

TRACE[sm-layer.c:213] sm_register_client(): ICE connection fd = 19, received REGISTER CLIENT [Previous Id = None]

TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (Program, pulseaudio)
TRACE[xfsm-properties.c:489] xfsm_properties_set_string(): -> Set string (UserID, testuser)
TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 246f5fdc7-f257-4831-ab95-03836da490a0, received SAVE YOURSELF DONE [Success = True]

TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering

There is another bug in mousepad, in search and replace, it closed when replacing, switching search direction, while replacing all, but that's another topic.

edit:
Well, restarting the  systemd-logind kills the X-session also.

Last edited by whitesnow (2017-04-02 11:21:05)

Offline

#4 2017-04-02 22:38:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

whitesnow wrote:

In terminal it works. Returns the focus to the terminal, and asks for password.

From xterm it does not. It does not return to the xterm.
Instead it looks like this:

 testuser@NAME: xfce4-appfinder --collapsed
 testuser@NAME:

Where from terminal:

 testuser@NAME: xfce4-appfinder --collapsed
[sudo] password for testuser:

There is no reason that it should be asking you for a password. It should run under your session profile with your session permissions.

Which distro are you running?
Are you running this locally or remotely (vnc, rdp, ssh, etc)?
Are you running as root?
How are you starting Xfce? Manually or via a display manager?

Make sure that your user account owns all the files in it's home directory. You can also try creating another test account to see if everything works there. If not, it may be a system problem with your computer.

Can you post back the following:

ls -al $(which xfce4-appfinder
ls -al $(which xfce4-terminal
env

There is another bug in mousepad, in search and replace, it closed when replacing, switching search direction, while replacing all, but that's another topic..

This may be related to the issue above.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2017-04-05 18:03:57

whitesnow
Member
Registered: 2017-04-02
Posts: 5

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

ToZ wrote:

There is no reason that it should be asking you for a password. It should run under your session profile with your session permission

No, no, that is alright.

sudo

on this machine asks me always for a password. And this is what is working, when I start in the Terminal

 xfce4-appfinder --collapsed

and key there

 sudo mousepad

in.
This

sudo mousepad

is not show in the Terminal Window but in the window
of "Application Finder" - meaning, the window of xfce4-appfinder.

And this gives the focus back to the

xfce4-terminal

to get the password,

sudo

is asking for.

With

xterm

this did not work.

xfce4-terminal 0.8.4 (Xfce 4.12)
XTerm(327)

http://invisible-island.net/xterm/

ToZ wrote:

Which distro are you running?
Are you running this locally or remotely (vnc, rdp, ssh, etc)?
Are you running as root?
How are you starting Xfce? Manually or via a display manager?

I'm running Arch Linux.

NAME% uname -a 
Linux NAME 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux

I'm running locally.
No, I'm not running as  root.
I'm starting Xfce via command

startx

.
With an

.xinitrc

containing:

...
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec startxfce4
NAME% ls -al $(which xfce4-appfinder)
-rwxr-xr-x 1 root root 116216 May  7  2016 /usr/bin/xfce4-appfinder
NAME% ls -al $(which xfce4-terminal)
-rwxr-xr-x 1 root root 183416 Feb  6 11:25 /usr/bin/xfce4-terminal
NAME% env
XDG_CONFIG_DIRS=/etc/xdg
LANG=en_US.UTF-8
DISPLAY=:0.0
SHLVL=4
LOGNAME=testuser
XDG_VTNR=1
PWD=/home/testuser
HG=/usr/bin/hg
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XAUTHORITY=/home/testuser/.Xauthority
COLORTERM=truecolor
XDG_SESSION_ID=c1
DESKTOP_SESSION=xfce
WINDOWPATH=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
VTE_VERSION=4601
MAIL=/var/spool/mail/testuser
USER=testuser
XDG_DATA_DIRS=/usr/local/share:/usr/share
_=/usr/bin/env
XDG_MENU_PREFIX=xfce-
GLADE_MODULE_PATH=:
OLDPWD=/home/testuser
SHELL=/bin/zsh
WINDOWID=23069310
TERM=xterm-256color
GTK_MODULES=canberra-gtk-module:canberra-gtk-module
XDG_CURRENT_DESKTOP=XFCE
GLADE_CATALOG_PATH=:
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
SSH_AUTH_SOCK=/tmp/ssh-YBYGZDcFTLGa/agent.3147
SSH_AGENT_PID=3148
HOME=/home/testuser
VDPAU_DRIVER=i965
GLADE_PIXMAP_PATH=:
XDG_RUNTIME_DIR=/run/user/1000
SESSION_MANAGER=local/NAME:@/tmp/.ICE-unix/3131,unix/NAME:/tmp/.ICE-unix/3131
XDG_SEAT=seat0
NAME%

There is another bug in mousepad, in search and replace, it closed when replacing, switching search direction, while replacing all, but that's another topic..

This may be related to the issue above.

Sorry, this is not my impression. Should not have mentioned it in the first place. Usually it's quite stable, so it was more a surprice to me, when it occasionally died. But I did not investigate this further.

Offline

#6 2017-04-05 19:04:28

whitesnow
Member
Registered: 2017-04-02
Posts: 5

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

Well, now I can give another example. I did not happen to do this up to now.

The same /Application/run Program (so: xfce4-appfinder).

And then by error, keying in a terminal command like

less

or

 man less

Or here at this machine

 htop

is a nice example.

Because

htop

is in the list of the xfce4-appfinder.

So the behaviour is different, if running

xfce4-appfinder

or

xfce4-appfinder --collapsed

If not "collapsed" it requires pressing "Enter" two times, and starts a terminal containing htop.

And if running "collapsed" it blocks the whole session.

Offline

#7 2017-04-05 19:04:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

I misunderstood the process that you are using. I'm surprised that running "xfce4-appfinder --collapsed" followed by "sudo mousepad" in that appfinder window returns to the terminal window for the password. On my system (also Arch Linux) after I type in the password I get a "cannot open display" error. You must have configured sudo to somehow pass on the display environment variable. I get the same result with xterm.

If you try running "sudo mousepad" in an xfce4-appfinder window started from a menu, the system won't be able to display a dialog asking for your password which would lead to a hung process.

The bigger issue here is that you are using sudo to run graphical programs. This is problematic. You should be using gksudo or pkexec (which needs to be configured for every sudo app you want to run) so that it properly sets up your environment. In fact, if you used either of those, you would prompted with a graphical dialog box asking for your password, which would bypass the whole returning to the terminal to enter a password.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2017-04-05 19:44:59

whitesnow
Member
Registered: 2017-04-02
Posts: 5

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

Yes, I understood already, that I did something I'm not supposed to do.

But what about the example with running htop from "xfce4-appfinder --collapsed".

In the menu it says "Run Program", and I want to run "htop".

Am I allowed to do this?

With the sudo I don't understand you.

"after I type in the password"

You seemingly did something different, then I.

From the Terminal I started "xfce4-appfinder --collapsed", that's how I understood your advice.
One result was a totally unresponsiv Xfce-Session, well the mouse did move, but that was all.
And the other result was the asking for password of sudo.

Yes, yes, yes.
It is strange and gets stranger.

Starting a new Terminal session, there "xfce4-appfinder --collapsed", therein, "sudo mousepad".
Hangs the whole session. (I have to kill whe whole Xorg session.)

But closing the xfce4 session with an open Terminal.
And restarting the session - that opens that Terminal window again.

And there, in this window, running "xfce4-appfinder --collapsed", therein, "sudo mousepad", asks for the password of sudo.

Offline

#9 2017-04-06 02:43:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Desktop freezes after "Run Program" xfce4-appfinder --collapsed

whitesnow wrote:

Yes, I understood already, that I did something I'm not supposed to do.

But what about the example with running htop from "xfce4-appfinder --collapsed".

In the menu it says "Run Program", and I want to run "htop".

Am I allowed to do this?

You can, but you have to run it inside of a terminal window so it has somewhere to display it's output. Try entering the following command:

xterm -e htop

...or:

xfce4-terminal -x htop

With the sudo I don't understand you.

"after I type in the password"

You seemingly did something different, then I.

From the Terminal I started "xfce4-appfinder --collapsed", that's how I understood your advice.
One result was a totally unresponsiv Xfce-Session, well the mouse did move, but that was all.
And the other result was the asking for password of sudo.

Yes, yes, yes.
It is strange and gets stranger.

Starting a new Terminal session, there "xfce4-appfinder --collapsed", therein, "sudo mousepad".
Hangs the whole session. (I have to kill whe whole Xorg session.)

But closing the xfce4 session with an open Terminal.
And restarting the session - that opens that Terminal window again.

And there, in this window, running "xfce4-appfinder --collapsed", therein, "sudo mousepad", asks for the password of sudo.

Install the package "gksu" and then from within "xfce4-appfinder --collapsed", terminal or menu, run the command:

gksudo mousepad

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 655.4 KiB (Peak: 672.24 KiB) ]