You are not logged in.

#1 2014-05-04 09:02:15

kamrava
Member
Registered: 2013-12-08
Posts: 75

No programs will launch after disconnecting from a network connection

When I disconnect a internet network(WiFi or Wire) and disconnect (or reconnect), no programs will run and gets me following error:

[kamix@localhost ~]$ gedit
No protocol specified

** (gedit:5064): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused

(gedit:5064): Gtk-WARNING **: cannot open display: :0.0

I've tested those on Xfce and KDE both has this problem.

Last edited by kamrava (2014-05-06 06:54:13)

Offline

#2 2014-05-04 16:44:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,507

Re: No programs will launch after disconnecting from a network connection

kamrava wrote:

... When I disconnect a internet network(WiFi or Wire) and reconnect to it again, no programs will run...

How, specifically, do you do that. 
Also, are you issuing the gedit command from a terminal or a console?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2014-05-05 08:59:32

kamrava
Member
Registered: 2013-12-08
Posts: 75

Re: No programs will launch after disconnecting from a network connection

You can see the problem in this screencast :

http://www.mediafire.com/watch/99gi9gmb … roblem.mp4

Any helps would be great.

Offline

#4 2014-05-05 17:10:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No programs will launch after disconnecting from a network connection

No one has the time to go through your screencast. Not to mention, people like me who have all media related websites blocked from their network at work.

If you cannot be bothered to take the time to describe your problem correctly with logs and useful information, then I guess no one will be bothered to help you out. Please learn how to ask questions the smart way !


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2014-05-05 17:31:00

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: No programs will launch after disconnecting from a network connection

@ kamrava,

It seems that NetworkManager is somehow interfering with X. I would suggest you first start by disabling NetworkManager, and assign an IP manually to you network interface. Then check if you can reproduce the issue.

PS: By the way, take heed of what @ Inxsible said. Your video was way too long, and instead of writing about your problem in a Text editor inside a video, you should post the relevant stuff here.

Last edited by x33a (2014-05-05 17:32:03)

Offline

#6 2014-05-05 18:25:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,430
Website

Re: No programs will launch after disconnecting from a network connection

I tried watching the screen cast.  None of it requires a movie.  It's a movie of watching text being typed (slowly) into a text editor.

Just post that text here.

How do you start your X Session?  Do you use any sort desktop sharing/remote x server/etc?

Last edited by Trilby (2014-05-05 18:27:13)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-05-05 19:41:58

kamrava
Member
Registered: 2013-12-08
Posts: 75

Re: No programs will launch after disconnecting from a network connection

Trilby wrote:

How do you start your X Session?

`~/.xinitrc`

#!/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 startkde
~                                                                                             
"/home/kamix/.xinitrc" 21L, 375C         
Trilby wrote:

Do you use any sort desktop sharing/remote x server/etc?

No. I don't think so!

Offline

#8 2014-05-06 05:36:06

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: No programs will launch after disconnecting from a network connection

@kamrava

So, as suggested, try disabling NetworkManager from the beginning:

# systemctl disable NetworkManager.service

Offline

#9 2014-05-06 06:49:52

kamrava
Member
Registered: 2013-12-08
Posts: 75

Re: No programs will launch after disconnecting from a network connection

x33a wrote:

@ kamrava,

I would suggest you first start by disabling NetworkManager, and assign an IP manually to you network interface. Then check if you can reproduce the issue.

@kamrava
So, as suggested, try disabling NetworkManager from the beginning:

I disabled NetworkManager. But how do I assign an IP manually to my network interface?!

Offline

#10 2014-05-06 07:15:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: No programs will launch after disconnecting from a network connection

Read the wiki..


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-05-06 07:41:27

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: No programs will launch after disconnecting from a network connection

So it does work without NetworkManager?

Then give Netctl a try:

https://wiki.archlinux.org/index.php/Netctl

Offline

#12 2014-05-06 09:31:10

kamrava
Member
Registered: 2013-12-08
Posts: 75

Re: No programs will launch after disconnecting from a network connection

Offline

Board footer

Powered by FluxBB