diff --git a/src/dlangui/platforms/sdl/sdlapp.d b/src/dlangui/platforms/sdl/sdlapp.d index 1e08163b..db08a894 100644 --- a/src/dlangui/platforms/sdl/sdlapp.d +++ b/src/dlangui/platforms/sdl/sdlapp.d @@ -1218,11 +1218,12 @@ class SDLPlatform : Platform { } else { // TODO: implement for POSIX if (normalized.isFile) - normalized = normalized.baseName; + normalized = normalized.dirName; string exe = "xdg-open"; string[] args; args ~= exe; args ~= normalized; + Log.d("Executing ", args); auto pid = spawnProcess(args); wait(pid); return true; diff --git a/src/dlangui/widgets/grid.d b/src/dlangui/widgets/grid.d index 676bd2e7..565f0f54 100644 --- a/src/dlangui/widgets/grid.d +++ b/src/dlangui/widgets/grid.d @@ -727,7 +727,7 @@ class GridWidgetBase : ScrollWidgetBase, GridModelAdapter, MenuItemActionHandler x -= _clientRect.left; y -= _clientRect.top; pointToCell(x, y, col, row, rc); - MenuItem item = getCellPopupMenu(col, row); + MenuItem item = getCellPopupMenu(col - _headerCols, row - _headerRows); if (!item) return false; return true;