LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2004, 02:16 PM   #1
pdohman
LQ Newbie
 
Registered: Apr 2003
Posts: 22

Rep: Reputation: 15
Open With Emacs & Gnome


I am running slack 10 with gnome-2.6.1.1. When I open a file with emacs by right clicking on the file and choosing emacs from the Open With menu I get an hourglass for several seconds and a opening file button down in the panel. This behavior does not occur if I run emacs from the command line and the file type seems to make no difference. I tested this using kde and had no problem. Has anyone else run into this? It annoys me.
Thanks
 
Old 10-30-2004, 02:51 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
The other one may be using emacsclient.
 
Old 10-30-2004, 03:35 PM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
when u click an icon, it executes some command line
i'd look into what command line is actually being executed when u click the emacs icon in gnome.
 
Old 10-30-2004, 04:03 PM   #4
pdohman
LQ Newbie
 
Registered: Apr 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Good point doublefailure. I took a file with no file association to emacs and added the command emacs to its actions. When I double click on the file the same problem occurs. Emacs opens immediately however there is a annoying hourglass for about fifteen seconds and a button in the panel stating "opening file" Strangely enough if I close emacs immediately I still have an hourglass and the panel button for about 15 seconds. I preformed an additional test by adding emacs to a launcher with the command emacs foo.txt. The problem does not occur when running this launcher. It seems to be specific to the Open With action or the gnome mime type.
 
Old 10-30-2004, 07:14 PM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
have u looked at menu editor in kde?

i''ve not used gnome, but presume there's similar thing in gnome too.
i'd look into that
 
Old 10-30-2004, 10:08 PM   #6
pdohman
LQ Newbie
 
Registered: Apr 2003
Posts: 22

Original Poster
Rep: Reputation: 15
I found an ugly work around that involved running emacs in a terminal for a particular file type. I then edited the requires_terminal line in the application-info config to false basically negating my previous step but I really didn't want a terminal open constantly. I have no idea why this works as opposed to simply adding the emacs command to a file action but I am happy now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open termcap database file for emacs? Erik_the_Red Linux - Software 4 07-31-2005 10:21 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
How to open or make a .php file in emacs?? eye Linux - Software 1 12-02-2003 12:19 AM
emacs: Cannot open termcap database file severedhead Linux - General 0 08-20-2002 03:15 PM
emacs: Cannot open termcap database file severedhead Linux - Software 0 08-07-2002 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration