mirror of https://github.com/buggins/dlangui.git
fix Show In File Manager function handling under Linux - close #151
This commit is contained in:
parent
bc7bcfa0a3
commit
73d38d0906
|
|
@ -1218,11 +1218,12 @@ class SDLPlatform : Platform {
|
||||||
} else {
|
} else {
|
||||||
// TODO: implement for POSIX
|
// TODO: implement for POSIX
|
||||||
if (normalized.isFile)
|
if (normalized.isFile)
|
||||||
normalized = normalized.baseName;
|
normalized = normalized.dirName;
|
||||||
string exe = "xdg-open";
|
string exe = "xdg-open";
|
||||||
string[] args;
|
string[] args;
|
||||||
args ~= exe;
|
args ~= exe;
|
||||||
args ~= normalized;
|
args ~= normalized;
|
||||||
|
Log.d("Executing ", args);
|
||||||
auto pid = spawnProcess(args);
|
auto pid = spawnProcess(args);
|
||||||
wait(pid);
|
wait(pid);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -727,7 +727,7 @@ class GridWidgetBase : ScrollWidgetBase, GridModelAdapter, MenuItemActionHandler
|
||||||
x -= _clientRect.left;
|
x -= _clientRect.left;
|
||||||
y -= _clientRect.top;
|
y -= _clientRect.top;
|
||||||
pointToCell(x, y, col, row, rc);
|
pointToCell(x, y, col, row, rc);
|
||||||
MenuItem item = getCellPopupMenu(col, row);
|
MenuItem item = getCellPopupMenu(col - _headerCols, row - _headerRows);
|
||||||
if (!item)
|
if (!item)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue