Author Topic: [SOLVED] Python IDLE starts and endless xdg-open loop  (Read 2279 times)

0 Members and 1 Guest are viewing this topic.

Offline NatGeo

  • Neuling
  • *
  • Posts: 19
[SOLVED] Python IDLE starts and endless xdg-open loop
« on: 15. December 2015, 22:23:45 »
Hi Folks,
I have the following problem
When I use Python IDLE's help>> Python Docs F1
instead of opening the help docs in palemoon and endless loop of xdg-open hogs the cpu.
I have to sudo killall xdg-open

I've searched the forum and there's a mention to a similar problem but with Qt.

I've changed
BROWSER=/usr/bin/xdg-open in both:
/etc/environment and ~/.bashrc

to

BROWSER=/usr/bin/palemoon

but the problem remains.

any clue?
Thanks in advance
Nacho
« Last Edit: 15. December 2015, 23:40:45 by NatGeo »

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: Python IDLE starts and endless xdg-open loop
« Reply #1 on: 15. December 2015, 22:30:33 »
I've had the xdg-open endless loop happen yesterday when I was playing around with smplayer, smtube, mpv & youtube-dl. My thoughts were that it was a Qt 5, related & that it will disappear before too long as development continues.

You are getting it via python, so it looks to be more complicated than I thought?
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: Python IDLE starts and endless xdg-open loop
« Reply #2 on: 15. December 2015, 23:14:00 »
I've changed
BROWSER=/usr/bin/xdg-open in both:
/etc/environment and ~/.bashrc
to
BROWSER=/usr/bin/palemoon
Have you checked what
Code: [Select]
echo $BROWSERgives back?
I had the same problem and I found that I had the variable set in /etc/profile, too  ???
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline NatGeo

  • Neuling
  • *
  • Posts: 19
[SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #3 on: 15. December 2015, 23:40:02 »
Have you checked what
Code: [Select]
echo $BROWSERgives back?
I had the same problem and I found that I had the variable set in /etc/profile, too  ???

It gives back /usr/bin/palemoon

However I've changed also /etc/profile and problem solved!!
Thanks Oberon

Offline anika200

  • Sr. Mitglied
  • ****
  • Posts: 301
  • Branch: stable
  • Desktop: Gnome 3.20-x on PC, Antergos on laptop and another PC.
  • GPU Card: NVIDIA 750Ti, Intel Iris 5200, AMD
  • GPU driver: NV, AMD uses proprietary and the intel is free
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #4 on: 15. December 2015, 23:48:50 »
I have not had any problems, I guess it will be fine to leave what I have now?
Code: [Select]
[lee@Galago-1 ~]$ echo $BROWSER
/usr/bin/xdg-open

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #5 on: 16. December 2015, 00:06:00 »
I have not had any problems, I guess it will be fine to leave what I have now?
Code: [Select]
[lee@Galago-1 ~]$ echo $BROWSER
/usr/bin/xdg-open
What's your
Code: [Select]
cat ~/.config/mimeapps.list | grep x-scheme-handler/http ?
And when you click on a link like THAT
Does it work?
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #6 on: 16. December 2015, 00:07:43 »
No wait! To reproduce the problem you have to open the link from outside the browser!
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #7 on: 16. December 2015, 00:17:15 »
Copy it to Libreoffice for example and try opening the link from there with Ctrl+click
When I do that and $BROWSER is set to /usr/bin/xdg-open I get this:



 :P
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline anika200

  • Sr. Mitglied
  • ****
  • Posts: 301
  • Branch: stable
  • Desktop: Gnome 3.20-x on PC, Antergos on laptop and another PC.
  • GPU Card: NVIDIA 750Ti, Intel Iris 5200, AMD
  • GPU driver: NV, AMD uses proprietary and the intel is free
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #8 on: 16. December 2015, 00:21:34 »
Whoa, that does not look fun.  :)
Code: [Select]
[lee@Galago-1 ~]$ cat ~/.config/mimeapps.list | grep x-scheme-handler/http
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
I am running out the door, I will check on the other thing latter to see what happens.

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #9 on: 16. December 2015, 00:29:20 »
This might not be a problem anyway as long as you use a "proper" DE... ;)
Quote from: ArchWiki
Inside a desktop environment (like GNOME, KDE, or Xfce), xdg-open simply passes the arguments to those desktop environment's file-opener application (eg. gvfs-open, kde-open, or exo-open). which means that the associations are left up to the desktop environment.
When no desktop environment is detected (for example when one runs a standalone window manager like eg. Openbox), xdg-open will use its own configuration files.
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #10 on: 16. December 2015, 01:25:09 »
@NatGeo: Thanks for starting this topic. :)
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline dr-kart

  • Vollwertiges Mitglied
  • ***
  • Posts: 110
  • Branch: stable
  • Desktop: Openbox LXQt
  • Kernel: 4.4
  • Skill: Novice
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #11 on: 11. January 2016, 20:00:53 »
...there is a slightly different way explained here: https://forum.manjaro.org/index.php?topic=28449.0
to change line in /etc/environment and /etc/profile  to
Code: [Select]
BROWSER=xdg-open
So what final proper solution should look like? The issue obviously exists in fluxbox, i3 and openbox!!
Desktop Lxqt systemD x64 nvidia 650 xonar DS
Desktop Lxqt systemD x64 nvidia 520
Laptop openbox openrc x32 radeon x700

Offline Rand01ph

  • Neuling
  • *
  • Posts: 1
  • I'm new. Be nice!
  • Skill: Novice
Re: [SOLVED] Python IDLE starts and endless xdg-open loop
« Reply #12 on: 23. April 2016, 06:51:05 »
I use https://github.com/march-linux/mimi to replace xdg-open , It works well.