Skip to content

Fix resolving PGMODELER_ROOT from pgmodeler.vars#1193

Open
rokkie wants to merge 114 commits into
nullptrlabs:developfrom
rokkie:envvars-path-fix
Open

Fix resolving PGMODELER_ROOT from pgmodeler.vars#1193
rokkie wants to merge 114 commits into
nullptrlabs:developfrom
rokkie:envvars-path-fix

Conversation

@rokkie
Copy link
Copy Markdown
Contributor

@rokkie rokkie commented Oct 28, 2018

When pgmodeler.vars is source'd the $0 variable expands to '-bash'
which causes readlink to fail and PGMODELER_ROOT being set to the wrong
directory.
This is fixed by using a while loop that recursively changes directory
following symlinks along the way util it reaches the end and then reads
the current working directory.
For more info, see:
https://gist.github.com/TheMengzor/968e5ea87e99d9c41782

rkhaotix and others added 30 commits April 23, 2018 10:46
Fix window scaling on HiDPI/Retina screens
Improved the setTag operation in ModelWidget in order to cleanup the
assigned tag to a set of objects

Minor improvement on DatabaseExplorerWidget to show the rls attributes
labels correctly in the attributes grid
DatabaseExplorerWidget

Added an custom option checkbox in Messagebox for general purpose usage.
…rder

to make them closable via dedicated button
amount of data more quickly and consuming less memory.
text and csv to accept QTableView instance instead of QTableWidget
triggers, and policies can be copied together with the parent object
(issue nullptrlabs#1120)
Minor layout adjustment on DonationWidget
identity column was followed by another column which datatype was not
accepted for identity, e.g, text after smallint (issue nullptrlabs#1123)
rkhaotix and others added 29 commits August 13, 2018 16:50
combining import sys. objects and import ext. objects options.
Fixed the general toolbar decoration
In DatabaseExplorerWidget the root item will come automatically selcted
when browsing a database
appear even if the flag indicating them to be visible was set to false
MetaDataHandlingForm, ModelDatabaseDiffForm, ModelExportForm,
ModelFixForm
Improved the pgmodeler.vars in order to locate Qt's libs and paths by
using the qtpaths application
SequenceWidget (when handling sequence options at ColumnWidget),
TableDataWidget and CustomSQLWidget
When pgmodeler.vars is source'd the $0 variable expands to '-bash'
which causes readlink to fail and PGMODELER_ROOT being set to the wrong
directory.
This is fixed by using a while loop that recursively changes directory
following symlinks along the way util it reaches the end and then reads
the current working directory.
For more info, see:
https://gist.github.com/TheMengzor/968e5ea87e99d9c41782
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants