Skip to content

Commit

Permalink
try to fix a hang on osx when invoking internal wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Jul 5, 2017
1 parent f1d0f9a commit edd5c6d
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 18 deletions.
19 changes: 16 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ if( NOT DEFINED QT5 )
set( QT5 "true" )
endif()

if( APPLE )
set( QT5 "true" )
endif()

find_file( JSON_HEADER_PATH "nlohmann/json.hpp" )

if( NOT JSON_HEADER_PATH )
set( JSON_HEADER_PATH "${PROJECT_SOURCE_DIR}/src/3rdParty/json/nlohmann/json.hpp" )
endif()

file( WRITE ${PROJECT_BINARY_DIR}/json.h "\n#include \"${JSON_HEADER_PATH}\"" )
MESSAGE( STATUS "found json.hpp header file at: ${JSON_HEADER_PATH}" )

find_file( GCRYPT_INCLUDE_FILE gcrypt.h )
find_path( GCRYPT_INCLUDE_PATH gcrypt.h )

Expand All @@ -88,15 +101,15 @@ find_library( GCRYPT_LIBRARY gcrypt )
if( NOT GCRYPT_INCLUDE_FILE )
MESSAGE( FATAL_ERROR "could not find gcrypt header file" )
else()
MESSAGE( STATUS "found gcrypt header file: ${GCRYPT_INCLUDE_FILE}" )
MESSAGE( STATUS "found gcrypt header file at: ${GCRYPT_INCLUDE_FILE}" )
endif()

if( NOT GCRYPT_LIBRARY )
MESSAGE( FATAL_ERROR "could not find gcrypt library(libgcrypt.so)" )
MESSAGE( FATAL_ERROR "could not find gcrypt library" )
else()
get_filename_component( GCRYPT_LIBRARY_PATH ${GCRYPT_LIBRARY} DIRECTORY )

MESSAGE( STATUS "found gcrypt library: ${GCRYPT_LIBRARY}" )
MESSAGE( STATUS "found gcrypt library at: ${GCRYPT_LIBRARY}" )
MESSAGE( STATUS "adding library search path of: ${GCRYPT_LIBRARY_PATH}" )

endif()
Expand Down
4 changes: 4 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ version 1.2.8
-- Better mount/unmount events monitoring on OSX.
-- Set it as a run time option(off by default) to support ecryptfs-simple backend that does not have suid bit set. A user
will be asked to allow polkit support on first attempt.

version 1.2.9
-- Fix a crash on exit in OSX.
-- Show all crypto options when creating Cryfs volume.
2 changes: 1 addition & 1 deletion debian.upstream/BUILD_INSTRUCTIONS
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ HOW TO BUILD A SiriKali PACKAGE ON UBUNTU OR ANY OTHER DEBIAN BASED DISTRIBUTION

******************************************************************************************************

tar cf - . | xz -zf - > ../sirikali_1.2.8.orig.tar.xz
tar cf - . | xz -zf - > ../sirikali_1.2.9.orig.tar.xz

******************************************************************************************************

Expand Down
8 changes: 8 additions & 0 deletions debian.upstream/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
sirikali (1.2.9-1) UNRELEASED; urgency=low
[Mhogo Mchungu]
* New Features
-- Fix a crash on exit in OSX.
-- Show all crypto options when creating Cryfs volume.

-- Mhogo Mchungu <[email protected]> Thu, 29 Jun 2017 16:38:48 +0000

sirikali (1.2.8-1) UNRELEASED; urgency=low
[Mhogo Mchungu]
* New Features
Expand Down
6 changes: 3 additions & 3 deletions rpm/BUILD_INSTRUCTIONS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

ps: copy and paste all given commands to make sure you dont mistype them.
ps: at step 5,replace "1.2.8" to SiriKali version you are building.
ps: at step 5,replace "1.2.9" to SiriKali version you are building.
ps: these instructions assumes rpm build directory is at "~/rpmbuild".
Modify the paths in step 5 if they are different in your distribution.

Expand Down Expand Up @@ -32,8 +32,8 @@ ps: these instructions assumes rpm build directory is at "~/rpmbuild".
****************************************************************************************************************

rpmdev-setuptree
tar -cf ~/rpmbuild/SOURCES/SiriKali-1.2.8.tar ../SiriKali-1.2.8
xz -z ~/rpmbuild/SOURCES/SiriKali-1.2.8.tar
tar -cf ~/rpmbuild/SOURCES/SiriKali-1.2.9.tar ../SiriKali-1.2.9
xz -z ~/rpmbuild/SOURCES/SiriKali-1.2.9.tar

****************************************************************************************************************

Expand Down
2 changes: 1 addition & 1 deletion rpm/sirikali.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

Name: SiriKali
Version: 1.2.8
Version: 1.2.9
Release: 0
Summary: SiriKali is a Qt/C++ GUI front end to encfs,cryfs,gocryptfs,ecryptfs and securefs.
License: GPL-2.0+
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/3rdParty/lxqt_wallet/frontend/changepassworddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ LXQt::Wallet::changePassWordDialog::changePassWordDialog( QWidget * parent,const

this->setFixedSize( this->size() ) ;

this->setWindowFlags( this->windowFlags() | Qt::WindowStaysOnTopHint ) ;
//this->setWindowFlags( this->windowFlags() | Qt::WindowStaysOnTopHint ) ;
this->setWindowFlags( this->windowFlags() ) ;

if( parent ){

Expand Down
3 changes: 2 additions & 1 deletion src/3rdParty/lxqt_wallet/frontend/password_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ LXQt::Wallet::password_dialog::password_dialog( QWidget * parent,

this->setFixedSize( this->size() ) ;

this->setWindowFlags( this->windowFlags() | Qt::WindowStaysOnTopHint ) ;
//this->setWindowFlags( this->windowFlags() | Qt::WindowStaysOnTopHint ) ;
this->setWindowFlags( this->windowFlags() ) ;

if( parent ){

Expand Down
2 changes: 1 addition & 1 deletion src/checkforupdates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "siritask.h"
#include "version.h"

#include "3rdParty/json/json.hpp"
#include "json.h"

static QString _tr( const QStringList& l )
{
Expand Down
4 changes: 2 additions & 2 deletions src/mountinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

#include <QMetaObject>

mountinfo::mountinfo( QObject * parent,bool e,std::function< void() >&& stop ) :
mountinfo::mountinfo( QObject * parent,bool e,std::function< void() >&& quit ) :
m_parent( parent ),
m_quit( std::move( stop ) ),
m_quit( std::move( quit ) ),
m_announceEvents( e ),
m_linux( utility::platformIsLinux() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/sirikali.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include "walletconfig.h"
#include "plugins.h"

#include "3rdParty/json/json.hpp"
#include "json.h"

sirikali::sirikali() :
m_secrets( this ),
Expand Down
2 changes: 1 addition & 1 deletion src/siripolkit/zulupolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "siriPolkit.h"
#include "../task.h"
#include "../utility2.h"
#include "../3rdParty/json/json.hpp"
#include "json.h"

#include <termios.h>
#include <memory>
Expand Down
3 changes: 1 addition & 2 deletions src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@
#include "utility2.h"
#include "install_prefix.h"
#include "locale_path.h"
#include "3rdParty/json/json.hpp"
#include "plugins.h"

#include "json.h"
#include "readonlywarning.h"

#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion src/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ namespace utility
return ::Task::run< utility::Task >( [ exe ](){ return utility::Task( exe ) ; } ) ;
}
static void exec( const QString& exe,
const QProcessEnvironment& env = QProcessEnvironment(),
const QProcessEnvironment& env = utility::systemEnvironment(),
std::function< void() > f = [](){} )
{
::Task::run< utility::Task >( [ = ](){ return utility::Task( exe,env,f ) ; } ).start() ;
Expand Down

0 comments on commit edd5c6d

Please sign in to comment.