mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-06 03:42:15 +00:00
fix: launchApp on explorer supports ~ now
This commit is contained in:
1 parent
8fefd4a61f
commit
e482b00a30
1 file changed
+7
@@ -143,6 +143,13 @@ const launch_app = async (options)=>{
|
||||
}
|
||||
}
|
||||
|
||||
// if path starts with ~, replace it with home_path
|
||||
if(options.path && options.path.startsWith('~/'))
|
||||
options.path = window.home_path + options.path.slice(1);
|
||||
// if path is ~, replace it with home_path
|
||||
else if(options.path === '~')
|
||||
options.path = window.home_path;
|
||||
|
||||
// open window
|
||||
el_win = UIWindow({
|
||||
element_uuid: uuid,
|
||||
|
||||
Reference in new issue
Block a user