Skip to content

Add/Edit issues with gedit #210

Closed
Closed
@mikeedjohn

Description

@mikeedjohn

Ubuntu 16.04.3
Gnome Shell
Python 2.7.12
GNOME Terminal 3.18.3, bash
Problem exists for 3.3.1, which is the current master.

Gedit as EDITOR seems to have problems when adding and editing existing bookmarks if an existing gedit window is open, for example in another workspace. As you probably know Gedit is the default editor on many Ubuntus.

Gedit

michael@Compaq-CQ58:$ buku -w -z
[DEBUG] Version 3.3.1
[DEBUG] Edited content written to /tmp/buku-edit-8gtaapna
Edit aborted
michael@Compaq-CQ58:
$

This opens the template, but as you can see control immediatey returns to the command prompt. If saved, the temporary file is left in tmp permanently. This is problematic because unless you notice/understand the error message the user may think the bookmark has been added.

michael@Compaq-CQ58:~$ buku -z -w 4
[DEBUG] Version 3.3.1
[DEBUG] Edited content written to /tmp/buku-edit-tsu9upue
[DEBUG] keywords: ['api,game library,graphics,graphics library,sdl,sdl2']
[DEBUG] parsed tags: [,api,game library,graphics,graphics library,sdl,sdl2,]
[DEBUG] query: "UPDATE bookmarks SET URL = ?, tags = ?, desc = ?, metadata = ? WHERE id = ?", args: ['https://www.libsdl.org', ',api,game library,graphics,graphics library,sdl,sdl2,', 'Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.', 'Simple DirectMedia Layer - Homepage', 4]
4. Simple DirectMedia Layer - Homepage

https://www.libsdl.org

  • Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.

api,game library,graphics,graphics library,sdl,sdl2

michael@Compaq-CQ58:~$

This opens the bookmark for editing in the editor, but control immediatey returns to the command prompt after giving no error message at all. Again if saved, the temporary file is left in tmp permanently. But no edit actually takes place.

Leafpad

So far this seems to be working okay in all respects.

I have not tested any other editors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions