Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd June 2012, 01:36 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Weird problem: Thunar + Gedit

Background: Running the Fedora 16 Xfce spin. In Applications > Settings > Preferred Applications, Gedit is set as my default text editor, while Thunar is set as my default file manager.

Quote:
gedit-3.2.6-1.fc16.x86_64
Thunar-1.3.0-4.fc16.x86_64
Problem: When, from Thunar, I try double clicking to open text files, nothing happens. On the next immediate attempt, the file opens in Gedit, but the mouse turns into a spinning wheel for a while. On the other hand, if i select the file, right click, and select "Open with 'gedit'" the file opens immediately without any spinning wheels.

No problems whatsoever opening text files from Pcmanfm, which makes me think that there's something wrong with Thunar.

I've tried right clicking files from Thunar, selecting Properties. The files do show they are supposed to open with Gedit. I've even tried using a custom command ("gedit") but that does not fully resolve the problem either; makes it so that on first attempt nothing happens, but on second attempt the file opens without a spinning wheel.

Anybody have any ideas?
Reply With Quote
  #2  
Old 2nd June 2012, 01:54 AM
BBQdave's Avatar
BBQdave Offline
Gnome-gasmic by choice!
 
Join Date: Aug 2011
Location: North Carolina
Age: 45
Posts: 1,037
linuxubuntufirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by hunger View Post
Anybody have any ideas?
I ran into the same thing. Ultimately I would open gedit first, then select the file to open. No delay or sluggish response opening a file through gedit.
__________________
On quest for blue smoke and red rings...

Last edited by BBQdave; 2nd June 2012 at 01:57 AM. Reason: clarifying
Reply With Quote
  #3  
Old 2nd June 2012, 03:04 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by hunger

No problems whatsoever opening text files from Pcmanfm, which makes me think that there's something wrong with Thunar.
Did you try that immediately after a reboot and before trying with Thunar?

This won't help any, but I first noticed this issue with Thunar and Gedit maybe six or seven months ago. It made its way onto my little list of irritating things while I was trying Fedora 15 with XFCE. At the time, I noticed that nobody else was posting about it. I eventually gave up on Fedora 15 altogether, but soon the Thunar-Gedit thing started in my Arch Linux system which also uses XFCE. It still happens today. But it also happens the first time I double-click a file associated with Gedit in the Xfe file manager. After the first delayed opening in either file manager, both file managers open files with Gedit normally (until the first try after the next reboot). So I still sort of think it's a Gedit thing which is why I tend to reach for Xfe and associate text files in it with Xfw (X File Write) in Arch. My other Linux system doesn't even have Gedit, so this is not really a big deal to me any more. I only wrote this because this is the first post I've seen about anybody else noticing this issue.
Reply With Quote
  #4  
Old 13th June 2012, 08:20 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by stoat View Post
Did you try that immediately after a reboot and before trying with Thunar?
Don't believe I rebooted before trying it with PCManFM. Think I just went back and forth during testing.

I found a related bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=785497

Last edited by hunger; 13th June 2012 at 08:29 AM.
Reply With Quote
  #5  
Old 13th June 2012, 01:06 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Weird problem: Thunar + Gedit

I suspect it's passing a wrong parameter to gedit.
Right-click>open with uses gedit's desktop file so it works properly, direct click uses exo-open's (preferred applications) 'helper' file.
I don't have gedit here but this is what I would do to troubleshoot:
Search for all gedit desktop files in /usr/share/applications. Look at the Exec keys they use (if more than one desktop file).
Also check gedit's command-line options.
Now open ~/.local/share/xfce4/helpers/<filemanager> and compare then correct if needed.
Reply With Quote
  #6  
Old 13th June 2012, 03:12 PM
mmix Offline
Registered User
 
Join Date: Aug 2009
Posts: 742
linuxfirefox
Re: Weird problem: Thunar + Gedit

manually, compiled XFCE 4.10 in F17, it works fine.

Thunar 1.4.0
Gedit 3.4.2
Reply With Quote
  #7  
Old 19th June 2012, 03:53 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by secipolla View Post
I suspect it's passing a wrong parameter to gedit.
Right-click>open with uses gedit's desktop file so it works properly, direct click uses exo-open's (preferred applications) 'helper' file.
I don't have gedit here but this is what I would do to troubleshoot:
Search for all gedit desktop files in /usr/share/applications. Look at the Exec keys they use (if more than one desktop file).
Also check gedit's command-line options.
Now open ~/.local/share/xfce4/helpers/<filemanager> and compare then correct if needed.
Thanks. Actually, "Open with" doesn't work either. I initially thought it did, but I think it just did because I was trying that immediately after double clicking. "Open with," if not preceded by double clicking, does not necessarily work.

I've looked at the following but am not spotting anything weird:
  • ~/.local/share/applications/mimeapps.list
  • gedit.desktop
  • /usr/share/xfce4/helpers/Thunar.desktop
Reply With Quote
  #8  
Old 19th June 2012, 12:07 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Weird problem: Thunar + Gedit

Basically it looks like gedit is misbehaving. Have you tried to double-click or 'Open with' and wait to see if it eventually opens after some time?
Does it give any warning on ~/.xsession-errors when you try the first time?
What are the contents of gedit.desktop ?
Reply With Quote
  #9  
Old 20th June 2012, 03:33 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by secipolla View Post
Basically it looks like gedit is misbehaving. Have you tried to double-click or 'Open with' and wait to see if it eventually opens after some time?
Does it give any warning on ~/.xsession-errors when you try the first time?
What are the contents of gedit.desktop ?
Double clicking the first time doesn't seem to work even after waiting. I'm not sure if I've ever had a complete failure with "Open with."

Don't see any errors in ~/.xsession-errors that mention geditm Thunar, or xfdesktop.

Abbreviatd contents of gedit.desktop:

Quote:
[Desktop Entry]

Exec=gedit %U
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=GNOME;GTK;Utility;TextEditor;
X-GNOME-DocPath=gedit/gedit.xml

X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gedit
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.6
X-GNOME-Bugzilla-ExtraInfoScript=/usr/libexec/gedit/gedit-bugreport.sh
X-Desktop-File-Install-Version=0.18
I can post more parts if you want. I mostly just cut out the names and descriptions.
Reply With Quote
  #10  
Old 20th June 2012, 02:20 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Weird problem: Thunar + Gedit

And does it open normally if you launch it from the menu (the first time after you login)?(ok, has been answered already)
Also copy gedit.desktop to ~/.local/share/applications/ and change
Exec=gedit %U
for
Exec=gedit %F

or try setting 'StartupNotify=false'.

I just saw that the new gedit, in which this issue is solved, has the same desktop file. Maybe it's trying to open 'gedit --new-window' and since there's no window already opened it fails(?)

Anyway, I use LXDM and I noticed, just mentioning, that when I used GDM and I opened a Thunar window from file-roller, the window would open quickly but the busy cursor would remain for a while.
This was in another installation so other may be the reasons it changed but now file-roller opens a Thunar window without any busy cursor.
So another thing you may try to edit in your local gedit.desktop (maybe the first thing to try) is to remove all X-GNOME entries as (who knows) maybe GDM interferes?

All semi-blind guesses.
Reply With Quote
  #11  
Old 21st June 2012, 07:14 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by secipolla View Post
And does it open normally if you launch it from the menu (the first time after you login)?(ok, has been answered already)
Also copy gedit.desktop to ~/.local/share/applications/ and change
Exec=gedit %U
for
Exec=gedit %F
This did not work.

Quote:
or try setting 'StartupNotify=false'.
This appears to get rid of the spinning wheel. But, the general problem persists.

My hunch is that it's something in Xfce or Thunar, since the problem doesn't occur from PCManFM. But, who knows ...
Reply With Quote
  #12  
Old 21st June 2012, 02:57 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Weird problem: Thunar + Gedit

If you think you have nothing to loose, you can upgrade to Xfce 4.10 http://repos.fedorapeople.org/repos/kevin/xfce-4.10/
It works fine but it's a different version and thus has different issues.
(and in my experience - not only with Xfce - the best is to start with fresh settings for its components)
Reply With Quote
  #13  
Old 7th August 2012, 08:04 AM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
linuxfirefox
Re: Weird problem: Thunar + Gedit

This problem is persisting after updates.

-- Fedora 17
-- Thunar-1.3.0-6.fc17.x86_64
-- xfdesktop-4.8.3-3.fc17.x86_64
-- Xfce 4.8
Reply With Quote
  #14  
Old 7th August 2012, 08:18 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: Weird problem: Thunar + Gedit

Yes, I see this on F17. However emacs as the default editor never fails.

The gedit processor is hung and waiting in background btw.
I *suspect* gedit is doing some dbus chatter and not recognizing the non-gnome peer response.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #15  
Old 7th August 2012, 07:38 PM
hunger Offline
Registered User
 
Join Date: Jun 2008
Location: San Francisco
Posts: 75
windows_xp_2003firefox
Re: Weird problem: Thunar + Gedit

Quote:
Originally Posted by stevea View Post
Yes, I see this on F17. However emacs as the default editor never fails.
Haven't seen the problem with Geany either. I have, however, seen the spinning wheel with programs besides Gedit. For example, I think I've seen the spinning wheel at least once with Libre Office. Not sure if those experiences are related to the Gedit problem though.
Reply With Quote
Reply

Tags
gedit, problem, thunar, weird

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 16 Xfce thunar language problem SilvioTO Fedora Spins & Remixes 0 4th January 2012 09:46 AM
gedit problem stolea Using Fedora 1 2nd February 2011 12:50 PM
Some problem with GEdit sarol Using Fedora 2 27th December 2010 12:36 PM
gedit problem charactermatter Using Fedora 1 26th June 2008 04:45 AM
Gedit gives error when no write access - ImportError: No module named gedit wpyung Using Fedora 0 15th June 2006 09:54 AM


Current GMT-time: 23:40 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat