Skip to content

Commit e482b00

Browse files
committed
fix: launchApp on explorer supports ~ now
1 parent 8fefd4a commit e482b00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gui/src/helpers/launch_app.js

+7
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ const launch_app = async (options)=>{
143143
}
144144
}
145145

146+
// if path starts with ~, replace it with home_path
147+
if(options.path && options.path.startsWith('~/'))
148+
options.path = window.home_path + options.path.slice(1);
149+
// if path is ~, replace it with home_path
150+
else if(options.path === '~')
151+
options.path = window.home_path;
152+
146153
// open window
147154
el_win = UIWindow({
148155
element_uuid: uuid,

0 commit comments

Comments
 (0)