mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
fix #2119 by updating libSDL2.so and fix Evernote Plugin
This commit is contained in:
2
Makefile
2
Makefile
@@ -250,7 +250,7 @@ utupdate: all
|
||||
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.apparmor.openstore $(INSTALL_DIR)/koreader
|
||||
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.desktop $(INSTALL_DIR)/koreader
|
||||
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.png $(INSTALL_DIR)/koreader
|
||||
ln -sf ../../../$(UBUNTUTOUCH_SDL_DIR)/lib/arm-linux-gnueabihf/libSDL2.so $(INSTALL_DIR)/koreader/libs
|
||||
ln -sf ../../$(UBUNTUTOUCH_DIR)/libSDL2.so $(INSTALL_DIR)/koreader/libs
|
||||
|
||||
# create new package
|
||||
cd $(INSTALL_DIR) && pwd && \
|
||||
|
||||
BIN
platform/ubuntu-touch/libSDL2.so
Normal file
BIN
platform/ubuntu-touch/libSDL2.so
Normal file
Binary file not shown.
@@ -7,6 +7,8 @@ local DocSettings = require("docsettings")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local Screen = require("device").screen
|
||||
local Event = require("ui/event")
|
||||
local util = require("ffi/util")
|
||||
local Device = require("device")
|
||||
local DEBUG = require("dbg")
|
||||
local T = require("ffi/util").template
|
||||
local _ = require("gettext")
|
||||
@@ -40,7 +42,17 @@ function EvernoteExporter:init()
|
||||
history_dir = "./history",
|
||||
}
|
||||
self.template = slt2.loadfile(self.path.."/note.tpl")
|
||||
self.config = DocSettings:open(self.path)
|
||||
self:migrateClippings()
|
||||
self.config = DocSettings:open(util.joinPath(self.clipping_dir, "evernote.sdr"))
|
||||
end
|
||||
|
||||
function EvernoteExporter:migrateClippings()
|
||||
local old_dir = util.joinPath(util.realpath(util.joinPath(self.path, "..")),
|
||||
"evernote.sdr")
|
||||
if lfs.attributes(old_dir, "mode") == "directory" then
|
||||
local mv_bin = Device:isAndroid() and "/system/bin/mv" or "/bin/mv"
|
||||
return util.execute(mv_bin, old_dir, self.clipping_dir) == 0
|
||||
end
|
||||
end
|
||||
|
||||
function EvernoteExporter:addToMainMenu(tab_item_table)
|
||||
|
||||
Reference in New Issue
Block a user