gedit won't open file first time

Questions about applications and software
Forum rules
Before you post please read this

gedit won't open file first time

Postby pastim on Sun Dec 16, 2012 4:43 am

I'm on the latest and up-to-date version of Mint Debian. For some time I have been bugged by a weird problem.

When I select a file and try to 'open with' gedit from thunar nothing happens except the mouse turns into a spinning wheel. When I repeat the action it works.

I have seen similar reports elsewhere (other forums from Arch & Fedora) but no solution. There was one comment about permissions, and downgrading dconf, but I'm not sure what that's about.

Any thoughts out there?
Ancient but excellent Sony laptop now running Mint Debian Mate. Spends much of it's time as a wireless controller for a Logitech Squeezebox.
pastim
Level 1
Level 1
 
Posts: 40
Joined: Sat Oct 01, 2011 4:49 pm

Linux Mint is funded by ads and donations.
 

Re: gedit won't open file first time

Postby viking777 on Sun Dec 16, 2012 1:33 pm

Unfortunately gedit is riddled with bugs none of which are ever addressed. The one that annoys me the most is the 'unsaved document' error where it launches an empty document as well as the document you want opened (and then asks you if you want to save it when you close down :evil: ). I know for a fact that this error has been around for at least 7 years (because I have read bug reports from 2005) but has never been addressed. I guess your error might be something similar.

There is really only one option and that is to use an editor that isn't so buggy. Pluma (although based on gedit) is miles better, but sadly pulls in shed loads of Mate dependencies when you try to install it - and that is probably not what you want (certainly not what I want). I personally go for leafpad, it is functional, lightweight and not full of bugs (at least none that affect me). There are lots of others to choose from.

If you choose this route you will obviously have to tell Thunar that Leafpad is your default text editor not gedit. I am not sure how you do that, I don't use Thunar.

OTOH it could be a bug in Thunar. I wouldn't know, as I say I don't use it.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: gedit won't open file first time

Postby altair4 on Sun Dec 16, 2012 5:38 pm

This is not at all relavant to the topic but:
viking777 wrote:Unfortunately gedit is riddled with bugs none of which are ever addressed. The one that annoys me the most is the 'unsaved document' error where it launches an empty document as well as the document you want opened (and then asks you if you want to save it when you close down :evil: ).

It saddens me that after all the years we've known each other that you never read any of my obscure HowTo's :(

gksu gedit /path also opens second empty tab: viewtopic.php?f=42&t=110021

I'm more than just a pretty face you know :)
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6148
Joined: Tue Feb 03, 2009 10:27 am

Re: gedit won't open file first time

Postby viking777 on Mon Dec 17, 2012 6:19 am

First of all apologies to the OP for this slight hijack, but I should answer Altair's post.

I don't think you read my posts either :)

viewtopic.php?f=190&t=96040&p=549188&hilit=gedit+unsaved+document#p549188

Where I tried a variation of your solution 5 months before you posted it. It still didn't work, neither did anything else I tried (one of the main reasons is that a lot of people were complaining about this happening with 'elevated privileges' but for me it was happening every time I used a mouse click to open a document elevated privileges or not). I simply gave up with gedit and now remove it and install Leafpad instead, so I stopped looking for an answer, which also means I can't try your variation of that fix.

Thanks anyway.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: gedit won't open file first time

Postby pastim on Wed Dec 19, 2012 5:31 am

I find it strange that there are so few reports of this around. I can only assume it must be down to some particular combination of stuff.

Ah well. It seems there's no known fix for gedit around these parts, but, as suggested. leafpad seems OK, so I'll use that from now on (although I hesitate to remove gedit just yet).
Ancient but excellent Sony laptop now running Mint Debian Mate. Spends much of it's time as a wireless controller for a Logitech Squeezebox.
pastim
Level 1
Level 1
 
Posts: 40
Joined: Sat Oct 01, 2011 4:49 pm


Return to Software & Applications

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron