在linux chrome应用程序中显示完整路径,而不是〜前缀路径 [英] Display full path instead of ~ prefixed path in linux chrome apps

查看:172
本文介绍了在linux chrome应用程序中显示完整路径,而不是〜前缀路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Linux上的 Chrome应用程序中显示选定文件的完整路径。当我调用文件系统 getDisplayPath api时,我得到所选文件的路径,前缀为〜。例如,而不是/home/user/file.txt我得到〜/ file.txt。有没有办法强制第一种格式。代码片段会很好。

I am trying to display the full path of a selected file in a chrome app on linux. When I invoke the filesystem getDisplayPath api I get the path of the selected file prefixed with ~. For example instead of /home/user/file.txt I get ~/file.txt. Is there a way to force the first format. A code snippet would be nice. Thanks in advance.

推荐答案

目前,没有办法获得完整路径。

Currently, there is no way to get the full path.

这是Chrome中的一项开放增强功能(但在那里并没有太多发生): https://code.google.com/p/chromium/issues/detail?id=322952

This is an open enhancement in Chrome (but not much happening there): https://code.google.com/p/chromium/issues/detail?id=322952

来源:获取DirectoryEntry的完整路径

这篇关于在linux chrome应用程序中显示完整路径,而不是〜前缀路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆