Ubuntu中某些程序无法打开网络共享文件
2008-10-26 13:33
579 查看
在 ubuntu 中有很多程序打开网络共享文件,无法打开或者明确提示无法打开。一个很有可能的原因是在
/usr/share/applications 中对应的 desktop 文件中 Exec 项中的参数不对。(含有汉字的路径或者含有汉字的文件名也需要这样处理)
例如:
Rhythmbox音乐播放器 无法打开 smb://音乐/三环边上.wma
处理方法
sudo gedit /usr/share/applications/rhythmbox.desktop
把其中的
Exec=rhythmbox %U
改为
Exec=rhythmbox %F
即可。
常用的参数有:%f %F %u %U,解释如下:
%f A single
file name, even if multiple files are selected. The system reading
the desktop entry should recognize that the program in question
cannot handle multiple file arguments, and it should should
probably spawn and execute multiple copies of a program for each
selected file if the program is not able to handle additional file
arguments. If files are not on the local file system (i.e. are on
HTTP or FTP locations), the files will be copied to the local file
system and %f will be expanded to point at the temporary file. Used
for programs that do not understand the URL syntax.
单个文件名,即使选择了多个文件。如果已选择的文件不在本地文件系统中(比如说在HTTP或者FTP上),这个文件将被作为一个临时文件复制到本地,%f将指向本地临时文件;
%F A list of
files. Use for apps that can open several local files at once. Each
file is passed as a separate argument to the executable
program.
文件列表。用于程序可以同时打开多个本地文件。每个文件以分割段的方式传递给执行程序。
%u A single
URL. Local files may either be passed as file: URLs or as file
path.
单个URL。本地文件以文件URL或文件路径的方式传递。
%U A list of
URLs. Each URL is passed as a separate argument to the executable
program. Local files may either be passed as file: URLs or as file
path.
URL列表。每个URL以分割段的方式传递给执行程序。本地文件以文件URL或文件路径的方式传递。
/usr/share/applications 中对应的 desktop 文件中 Exec 项中的参数不对。(含有汉字的路径或者含有汉字的文件名也需要这样处理)
例如:
Rhythmbox音乐播放器 无法打开 smb://音乐/三环边上.wma
处理方法
sudo gedit /usr/share/applications/rhythmbox.desktop
把其中的
Exec=rhythmbox %U
改为
Exec=rhythmbox %F
即可。
常用的参数有:%f %F %u %U,解释如下:
%f A single
file name, even if multiple files are selected. The system reading
the desktop entry should recognize that the program in question
cannot handle multiple file arguments, and it should should
probably spawn and execute multiple copies of a program for each
selected file if the program is not able to handle additional file
arguments. If files are not on the local file system (i.e. are on
HTTP or FTP locations), the files will be copied to the local file
system and %f will be expanded to point at the temporary file. Used
for programs that do not understand the URL syntax.
单个文件名,即使选择了多个文件。如果已选择的文件不在本地文件系统中(比如说在HTTP或者FTP上),这个文件将被作为一个临时文件复制到本地,%f将指向本地临时文件;
%F A list of
files. Use for apps that can open several local files at once. Each
file is passed as a separate argument to the executable
program.
文件列表。用于程序可以同时打开多个本地文件。每个文件以分割段的方式传递给执行程序。
%u A single
URL. Local files may either be passed as file: URLs or as file
path.
单个URL。本地文件以文件URL或文件路径的方式传递。
%U A list of
URLs. Each URL is passed as a separate argument to the executable
program. Local files may either be passed as file: URLs or as file
path.
URL列表。每个URL以分割段的方式传递给执行程序。本地文件以文件URL或文件路径的方式传递。
相关文章推荐
- 解决CHM文件无法从网络共享位置上直接打开的问题
- Ubuntu下安装android studio的时候,无法进入图形界面--/usr/lib/jdk1.8.0_60/jre/lib/i386/libawt_xawt.so: libXtst.so.6: 无法打开共享对象文件: 没有那个文件或目录
- win8无法拖拽文件到程序打开
- Ubuntu下Filezilla 无法上传某些文件或者已经上传的文件名显示为乱码
- Ubuntu:开启samba服务未能正常打开linux共享文件的解决办法
- ubuntu 下无法打开新建文件
- Photoshop 无法打开某些JPEG文件的成因
- Ubuntu“无法解析或打开软件包的列表或是状态文件”的解决办法。_StarSasumi_新浪博客
- ‘操作无法完成 ,因为其中的文件夹或文件已在另一程序中打开’问题解决
- Ubuntu下apache2无法解析php文件,浏览器提示下载所要打开的php文件
- VS2013 编译程序时提示 无法查找或打开 PDB 文件
- 解决Ubuntu下chrome无法打开配置文件的错误
- c# 读取其他程序正打开的文件的时“正由另一进程使用,因此该进程无法访问该文件。"的问题解决方法
- ubuntu无法解析或打开软件包的列表或是状态文件 解决方法
- 客户端无法获取网络共享文件
- 右键TXT文件-打开方式-选择默认程序提示 windows无法访问指定设备,路经或文件.您可能没有合适的权限访问这个项目
- 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
- MFC程序显示cannot open file ".\Debug\E0301.res" 无法打开资源文件
- windows server 2008下无法用程序打开一个xls文件问题
- 异常详细信息: System.Data.SqlClient.SqlException: 无法打开物理文件 。。。 操作系统错误 32:"32(另一个程序正在使用此文件,进程无法访问。