keepnote icon indicating copy to clipboard operation
keepnote copied to clipboard

Filesystem browsing when opening notebook

Open LFBernardo opened this issue 7 years ago • 5 comments

Running Keepnote 0.78 on Kali 2017.1. When you create or restore a notebook the file system can be browsed to the required location. But when opening different notebooks the file system isn't browse-able.

Logs are not indicating any errors or failures.

As I keep separate notebooks for all my clients this is quite painful

The workaround I currently use is going through the filesystem and opening up the nbk files.

keepnote

LFBernardo avatar May 06 '17 15:05 LFBernardo

I was able to create a temporary workaround for this problem by editing the following file:

/usr/share/pyshared/keepnote/gui/main_window.py

I changed the order of the code on lines 547-555.

From:

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*.nbk")
    file_filter.set_name(_("Notebook (*.nbk)"))
    dialog.add_filter(file_filter)

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*")
    file_filter.set_name(_("All files (*.*)"))
    dialog.add_filter(file_filter)

To:

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*")
    file_filter.set_name(_("All files (*.*)"))
    dialog.add_filter(file_filter)

    file_filter = gtk.FileFilter()
    file_filter.add_pattern("*.nbk")
    file_filter.set_name(_("Notebook (*.nbk)"))
    dialog.add_filter(file_filter)

denevin avatar May 31 '17 01:05 denevin

I will give it a go and see if it works for me as soon as I have spare time.

LFBernardo avatar Jun 15 '17 18:06 LFBernardo

To me, the workaround posted by @denevin worked well. Thanks

jdvalentini avatar May 08 '18 12:05 jdvalentini

The workaround posted by @denevin solved my issue.

rcuares avatar Nov 21 '18 04:11 rcuares

@denevin solution still works.

NinjaMinjax avatar Mar 13 '20 14:03 NinjaMinjax