Gedit opens an "Unsaved document" on opening files with mouse

when I open files by double-clicking the file with mouse I always get one additional "Unsaved Document X".. which is very annoying, because I have to close tham all, and click "Close without save"... it happens in dolphin, nautilus and krusader.
when I try opening a file from terminal using "gedit filename" that does not happen.
it also does not happen if I open the files from within gedit.
any hints on how to fix this?
thank you
Last edited by pootzko (2011-06-05 12:29:51)

pootzko wrote:
felrood wrote:
It's not a bug, it's a feature!
Gedit seems to display data from stdin in a new "Unsaved document". For example:
echo "foobar" | gedit
To break the pipe opened by krusader, i replaced the command 'gedit %U' in krusader with this script:
#!/bin/bash
gedit $1 < /dev/null
man, you're a genius. thank you so much! :)
ps. perhaps a more global solution is right clicking Kmenu button -> edit applications -> find gedit there -> put "gedit $1 < /dev/null" in gedits command field -> save
That's an amazing solution!
Maybe better would be...
gedit "$1" < /dev/null
(with the quotes). That way we prevent gedit to open two files with each non-spaced name in the case that our file name had blank spaces.
(gedit foo bar -->one file for 'foo' && one file for 'bar')
Thank you,
DaviD.
Last edited by DjDaviD (2012-02-28 23:38:03)

Similar Messages

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • Opened an Apple binary property list file with Texteditor

    Hello,
    i made the mistake opening an Apple binary property list file with Texteditor made a change and save it, now the file is corrupted. I should have used bbedit or textwrangler in stead but thats to late now.
    Is there a way to convert the file back to the previous state?
    when i open a similar file in textWrangler i get a xml file, when i open the other one textwrangler / bbedit gives the error "An unexpected I/O error occurred (MacOS Error code: -36)"
    i have undone the changes i made in Texteditor and saved it again, no result. I have no backup.
    Please help
    Thanks
    Marco

    Recovering an edited file which has been saved is in general (so long as no backup is generated) as difficult as recovering a deleted file (if not more so).
    Depending on which plist file you are referring to, it is often possible to just remove the corrupted file and the program which requires it will rebuild it upon its next launch (albeit likely without preferences saved).
    You could try that or let us know which plist you corrupted for more help.
    Best REgards,

  • Why can't i open an attached document (most often pps) with firefox when i can with internet explorer?

    why can't i open an attached document (most often pps) with firefox when i can with internet explorer?

    Perhaps if you change your setting here:
    orange Firefox button ''or'' Tools menu > Options > Applications tab
    In the search box, type '''power''' and then pause until the list is filtered. If you have these, try changing the action to "Always Ask":
    Microsoft PowerPoint Presentation<br>
    Microsoft PowerPoint Slide Show
    It's possible that if you don't have Microsoft Office installed, you might not have those listed.

  • I have Adobe Design and Web Premium CS6. If I buy adobe CC, can I easily open my for example indesign CS6 files with no complications?

    I have Adobe Design and Web Premium CS6. If I buy adobe CC, can I easily open my for example indesign CS6 files with no complications?

    I cannot imagine any problems in doing so, but you can keep your cs6 installation anyway.

  • How to put many documents in one file with words count

    HHow to put many documents in one file with words count

    Pdfs have no concept of words. Combining pdfs cannot be done with Reader. You need either Acrobat on a Mac or PC or perhaps with the PDF Pack service.

  • Opening a PDF document on a CD with Autorun

    Hi,
    I can open my PDF document using a simple autorun.inf command as follows:
    [autorun]
    shellexecute=D:\documentname.pdf
    But, the path only works on my computer. If I insert the CD into another computer and the drive name is different it obviously does not work. I have tried using a relative path like this:
    [autorun]
    OPEN=\documentname.pdf
    But that did not seem to work.
    Question:
    Is there a character limit to the length of the PDF file name I'm trying to open? Or, is my attempt to create a relative path name wrong?
    I want to send the CD to someone and have it open automatically to the PDF (there are about a dozen other PDF documents on the CD that the main one links to). So, I want to make it easy for them to go right to the main one.
    Thanks,
    Mindforge

    Hi,
    I can open my PDF document using a simple autorun.inf command as follows:
    [autorun]
    shellexecute=D:\documentname.pdf
    But, the path only works on my computer. If I insert the CD into another computer and the drive name is different it obviously does not work. I have tried using a relative path like this:
    [autorun]
    OPEN=\documentname.pdf
    But that did not seem to work.
    Question:
    Is there a character limit to the length of the PDF file name I'm trying to open? Or, is my attempt to create a relative path name wrong?
    I want to send the CD to someone and have it open automatically to the PDF (there are about a dozen other PDF documents on the CD that the main one links to). So, I want to make it easy for them to go right to the main one.
    Thanks,
    Mindforge

  • Is there a way to open and edit my iMovie HD files with iMovie '09 and later versions?

    I am getting ready to update an older iMac from Tiger to Mountain Lion. (Long overdue, I know) I have several files that I created using iMovie HD. After I update, will the new versions of iMovie be able to open and edit my iMovie HD files?

    I don't think that iMovie 11 is backwards compatible with iMovie HD 6.
    If you still have the install disks for iMovie Hd 6 (iLife 6) you can keep it alongside the newer version:
    Happily this is easily achieved, but it has to be done backwards.
    Delete iMovie 11 (just drag it to the trash). Now install iMovie 6 from the iLife 6 install disks. Update it to iMovie 6.0.3.
    Now re-install iMovie 11. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
    Then reinstall iMovie 11.
    iMovie 6 works great with iDVD 7.
    Now you have them both, and you can have both in the Dock as well.
    Alternatively you could try this method, suggested by poster Uitech:
    Open a terminal and type "touch /Library/Preferences/com.apple.iLife011.plist"
    (No quotes)
    Install iMovieHD6 from the iLife 6 install disk.
    This works with both Leopard and Snow Leopard Macs.

  • How to open,view pdf document in a form with zoom in and zoom out functionality Please urgent

    Hi
    Anybody can help me with a sample code in c# to open a pdf document using forms and to give the functionality   zoom in and zoom out   with verticall and horizontal scroll bar. Please help
    Regards
    Pol
    polachan

    Hello polachan,
    you can find two sample projects with code at
    [1] and
    [2].
    [1]
    http://www.codeproject.com/Articles/579878/MoonPdfPanel-A-WPF-based-PDF-viewer-control
    [2]
    http://www.gnostice.com/nl_article.asp?id=159&t=How_To_Create_A_PDF_Viewer_in_PDFOne_NET_v2_x
    Regards,
    Bo Liu
    Developer-Hotline for MSDN Online Germany
    Disclaimer:
    Please take into consideration, that further inquiries cannot or will be answered with delay.
    For further information please contact us per telephone through the MSDN-Entwickler-Hotline:
    http://www.msdn-online.de/Hotline
    For this post by the MSDN-Entwickler-Hotline the following terms and conditions
    apply: Trademarks,
    Privacy
    as well as the separate
    terms of use for the MSDN-Entwickler-Hotline .

  • Every Time I Open/Create A Document It Opens A New Window In PS CC

    -=PLEASE HELP=-
    I have Photoshop CC, And everytime I open/create a document it makes a new window. What I really want is it not to make a new window, and just do it's normal thing. This Is a problem for a numerous reasons. #1 I Cant see layers of document #2 I have to have multiple windows open instead of tabs #3 its just really annoying
    -=PLEASE I URGE YOU TO HELP ME=-

    Do you mean you want to open a new document in a new tab rather than in a new window?
    Try change your preference as below:
    Photoshop Preferences > Interface > Options > tick the "Open Documents as Tabs"

  • Open a url and view the files with it's timestamp

    Hi guys,
    I need to create a flow service in SAP BC to connect to a server by it's url and display it's files with it's timestamps.
    I have never done this b4, and usinf SAP BC makes it harder for me.. Mostly I need to know how to access the server and view the files with their timestamp.
    Any guidance for me will be much appreciated.
    Thank u.

    Yes,
    It's like this. I will connect to an FTP server. Then I need to view the files it the server or folder i specify with their respective timestamps.
    I am using SAP BC and it's webMethods to create the JAVA flow service. I am only now familiarising myself with SAP BC.
    Moreover I have never done a coding to access a server and list it's file. I can do it o view in a local directory using JFrame aand stuff... But SAP BC doesn't support those..
    So If u can give me some guidelines to follow.. i would appreciate it.
    Here's what i have come up with so far
    public static final void ReadFileServer( IData pipeline ) throws ServiceException
    //define input variables
         IDataCursor idcPipeline = pipeline.getCursor();
         String path = null;
         path = (String)idcPipeline.getValue();
         // Check if url is in the pipeline
         if (idcPipeline.first("path"))
              File dir = new File(path);
              String filesFound[]=dir.list();
              long [] age;
              age = new long[filesFound.length];
              for (int i = 0; i < filesFound.length; i++)
                   age = new File(filesFound).lastModified();
              String temp = "";
              for (int i = 0; i < age.length - 1; i++)
                   for(int k = i+1; k < age.length ; k++)
                        if (age > age [k])
                        temp = filesFound;
                        filesFound = filesFound[k];
                        filesFound[k] = temp;
              for (int i = 0; i < filesFound.length; i++)
              //get url out of the pipeline
              path = (String)idcPipeline.getValue();
              //insert the FILES into the pipeline
              idcPipeline.insertAfter("filesFound", filesFound);
              idcPipeline.insertAfter("age", age);
         //If it is not in the pipeline ERROR
         else
         age = "False";
         idcPipeline.insertAfter("path", path);
         //insert the successFlag into the pipeline
         idcPipeline.insertAfter("age", age);
         //Always destroy cursors that you created
         idcPipeline.destroy();
    return;
    }

  • HOW TO: Open SQL Developer from a batch file with specific tables opened

    I use SQL Developer daily as I develop database intensive programs.
    ** Question **
    How can I define a specific configuration of tabs (i.e. tables, procedures, etc) to be opened upon startup of SQL Developer?
    For example, creating a .BAT file to open SQL Developer with a specific set of table tabs already opened. This will save me the time every morning I use to open SQL Developer and configure all the tables I need opened.
    NOTE: I have tried various options of appending a table name to a command line starting sqldeveloper.exe. For example: ..\sqldeveloper.exe mydatabase.mytable. However, this only opens a worksheet tab with the name "mydatabase.mytable" but does not open my actual table.
    Any help will be appreciated.
    - Gary Davis

    what version are you using? Sql Dev 1.5?
    Not an exact answer, but you could try using Table FILTER
    click on your connection
    right button on TABLES
    click apply filter
    as for your question, check out:
    Re: EA1 - Automatically open connection list at startup?
    or
    SQL Developer

  • My computer no longer supports PC applications and so I cannot open all the documents I have made with Microsoft Word.  What is the best way to deal with this?

         I have tried to use "Pages" and find it difficult.  However, I have not taken the time to go through the tutorials.  I'm used to Word and don't really want to take the time to learn another word processing program unless it is superior to Word.  Should I download Microsoft Word or should I learn how to use "Pages".  (To learn "Pages" will take me twice as long as it will take someone under 50).  What say you?

    Office 2004 Applications Won't Work in Lion
    You must have Office 2004 which is a PPC-only suite and will not work in Lion. You need to upgrade to Office 2011 - Mactopia - or you can try the freeware suite, Libre Office, that is functionally similar to Office 2007 for Windows except it works on Lion.
    You may want to consider as well:
    These two suites are similar to Libre Office but not as current or as well-supported:
    NeoOffice
    Open Office
    And, then there is Apple's iWork suite:
    Pages - word processing and layout
    Keynote - presentation
    Numbers - spreadsheet
    Each can open and save Office compatible files. They may be purchased separately via the Mac App Store for $19.99 each.
    (Access to the Mac App Store requires Snow Leopard 10.6.6 or higher and an Apple ID.)

  • Selecting multiple files with mouse now wonky

    Using Windows 8.1 on HP machine
    All updates up-to-date
    Hardware: Microsoft Intellimouse Explorer 3.0
    Explorer Folder Option selected: Single-click to open an item (point to select); Underline icon titles only when I point on them
    Display: Detail list (Ctrl + Shift + 6)
    No touch input
    Here's the problem: For as long as I have used windows, I can select multiple files by pressing ctrl-left mouse button. If I want to select multiple consecutive files, I move my cursor down to the last file in the list and press shift-left mouse button.
    If I want to select multiple files that are not listed consecutively, I move my cursor along the list of files and press ctrl-left mouse button to select each individual file.
    This does not work for me any longer and I do not know why.
    Often I will press ctrl-left mouse click and the file will not select. When I move my mouse away from the file I've selected, it will UN-select. If I continue to press the CTRL key while attempting to select another file and float my mouse cursor down the
    list of files to select ONE single file further in the list, ALL the files in between the first file I click and the final file will become selected.
    Moving the mouse cursor carefully and steadily to select individual files yields varied results; sometimes I can select individual files; sometimes, I can click multiple times to select an additional file and the file will not become selected. More often
    than not, I will select several files and earlier files will become unselected.
    Extremely frustrating.
    I have been a Windows user since version 3.1 and this has never happened to me. I have been a Windows 8.1 user for over a year now and this is a new wrinkle. I have done system restore multiple times and it has not solved the problem. I have uninstalled
    Intellipoint/Microsoft Keyboard & Mouse center and reinstalled and the problem has not solved. I have checked every setting for my mouse in the mouse center and cannot see a setting that imposes this feature.
    Changing folder options to Double-click to open an item (single click to select) solves the problem. I am able to navigate and organize my files the way I always have. Only happens when single-click feature is enabled. Please note: I have been using the
    single-click select feature since Windows XP.
    Your guidance and actual solution to this irritant is appreciated.

    Hi,
    During my test, I cannot repro this issue even I configure the same setting with you. Maybe a hardware issue or software issue.
    Does this issue happen to other mouse?
    Can you test in safe mode to check how it works?
    Alex Zhao
    TechNet Community Support

  • How do I open OS 9 documents with OS 10.4.11

    I need to know how to open documents created with OS 9 using 10.4.11
    My hard drive has been replaced and I no longer have OS 9 on my system, plus, I don't have an old OS 9 install disc. I've got a ton of important documents I thought I'd open and try to convert to something that could be shared using Pages. But, no such luck.
    I'm fairly sure these documents were created using OS 9. The icons show a diagonal pencil with an upper case A in the top left half, a bar graph in the lower right half of a page with the upper right corner turned down. (I'm sure you're probably familiar with the icon, if you're old enough to remember the 90's)
    I just got Open Office for Word but haven't installed it yet. Does Open Office (or someone else) have a download that will let me open old Apple docs?
    Is there a simple solution to my problem? HELP - I don't have hard copies!!

    About the only way you can open documents created in applications
    under OS 9.x would be to have access to the applications, and likely
    have those running under an OS 9 system or through OS X 10.x as
    a Classic system while not independently bootable from OS X.
    Since you do not necessarily need to have an OS 9.2.2 full installer
    or restore installation to get an OS 9.2.2 system (and apps folder)
    into your PPC G5 computer, you do need a way to load it into the
    computer. This can be drag and drop; since it will not be starting
    the computer. A copy of another similar computer's OS 9.2.2
    system folder and the OS9 applications folder should be the easy
    street to getting something into your G5.
    (Unless you have the original restore/install disc set for that G5,
    however, or something almost identical in vintage and version;
    actually running an installer to put an OS 9.2.2 system in there
    would be most unlikely.)
    A copy on to an external HDD (firewire) could be used as a
    Classic volume, it could be used by the OS X system to
    open some older documents. But I suspect you'd need to
    have Apple Works 6.2 or so, for the document to be read.
    That application was included for use in both OS 9.2.2
    and OS X 10.x There may be a chance you could open
    an AppleWorks document in OS X (with AW) by checking
    the document's preference (get info) panel to see if it says
    open as classic, and has a checkbox; or not.
    There is alot going on in a computer and to not have the
    original software installed or only part of it, makes some
    simple things difficult. My iMac G4 1.25GHz 17" machine
    has an OS 9 system folder and apps folder; I don't use it,
    but since it takes up almost no room on the 80GB HDD,
    to remove it makes virtually no sense; as nothing is gained.
    My iMac G4 has AppleWorks (in OS X) and also, it can see
    and open AW documents -- some AW documents, depending
    on how they were created, in AppleWorks w/o OS 9. But this
    is no necessarily a standard thing; it may not work at all in
    your computer. Classic (an OS 9.2 system folder) is a require-
    ment for pre-X applications to open, and a suitable application
    has to be there to run. The OS 9.2 system need not boot the Mac.
    There may be some other workaround; short of utilizing a second
    Mac with either a Classic - OS 9.2.2 system intact, or a more
    traditional dual-boot OS 9.2.2 and OS 10.x computer; and then
    save the file in a different manner, or export it via FireWire, CD
    or ? to the other Macintosh. Sometimes, a text document can
    be copy/pasted into an email or saved as a pdf and sent to
    another computer, and used that way. However, not being able
    to open the document without a translator, it may be a problem.
    If you can find an application that can see, open and translate
    an OS 9 created document in some application such as A.W.
    then you may be able to use the contents.
    (If you have AppleWorks in your G5 now, see if you can choose
    to have AW open this doc file; out of curiosity. It may translate.
    I've forgotten alot about these kinds of things, and no longer use
    OS 9.2.2 since I sold my last dual booting computers years ago.)
    Good luck in this matter!

Maybe you are looking for

  • Smoothing in Illustrator

    I did a live trace on this and its too ragged for what I intend on using it for. Whats the best way to smooth the edges? I don't want to do it by hand unless I have to, its a big file. Any help/tips/tricks etc? Thanks! M

  • Blue Tooth Stereo not working like it used to (Lollipop Upgrade)

    I have an LG G3 - All around I really love this phone. However, last week the Lollipop OS came out and I upgraded it to that 5.0.1 OS. I now regret doing so and wish I could go back to the previous OS. Here's my issue - The Bluetooth stereo no longer

  • Keynote Spanish Spell Check - Keynote Foreign Language Spell Check

    After a fruitless search online and in Keynote Help (and just when I was on the verge of upgrading MS Office) I did learn how to spell check in foreign languages in Keynote. This works through the following Keynote menu selections: Edit/Spelling/Spel

  • Does anyone know how to enable byte-range requests on Mac OS X Server 10.5?

    I need to be able to host my podcast episodes on the server and iTunes is giving me the error that my episodes are on a server that does not support byte-rnage requests when I try to submnit the podcast feed the iTunes directory. Any help is greatly

  • Lenovo Ideacentre Q100 memory upgrage

    The compusa website clearly says the Ideacentre Q100 is upgradeable to 2Gb of RAM, but when I installed a 2Gb stick, it still only recognizes 1Gb.  Do i need to change some settings someplace or did Compusa flat out lie?