小编bea*_*uxq的帖子

xdg-open 自 16.04 升级后停止工作

xdg-mime query default inode/directory
Run Code Online (Sandbox Code Playgroud)

正确给我:

nemo.desktop
Run Code Online (Sandbox Code Playgroud)

就像我期望的那样,并希望它如此。

xdg-open $HOME
Run Code Online (Sandbox Code Playgroud)

给出一个错误:

xdg-mime: mimetype argument missing
Try 'xdg-mime --help' for more information.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/run-mailcap line 528.
Warning: program returned non-zero exit code #66
Run Code Online (Sandbox Code Playgroud)

...并打开 Audacious。

我尝试编辑 run-mailcap 行以转义大括号,从而消除了该错误消息。但这并不能解决问题。我仍然得到“缺少 mimetype 参数”并且打开了错误的程序。

我尝试卸载 Audacious,但它打开了一个不同的错误程序(git-cola 和 chrome)。

我试过了sudo apt-get install --reinstall xdg-utils,它没有改变任何东西。

编辑:更多信息,上述行为发生在 Cinnamon 和 Gnome 中,但不在 Lubuntu LXDE 中。在 LXDE 中,查询给出 …

mime-type xdg-open

9
推荐指数
2
解决办法
4444
查看次数

MonoDevelop报告构建成功但没有exe文件

在 MonoDevelop 中,我创建了一个新的解决方案(C# 控制台应用程序)。它给了我一个简单的 hello world 程序。我按下运行按钮。我看到“构建成功”终端出现并说:

Cannot open assembly '/home/beauxq/MonoProjects/cstest/cstest/bin/Debug/cstest.exe': No such file or directory.

Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

我查看那个 bin/Debug 目录,它是空的。

构建输出:

Building: cstest (Debug|x86)

Build started 7/28/2016 9:29:40 AM.
__________________________________________________
Project "/home/beauxq/MonoProjects/cstest/cstest/cstest.csproj" (Build target(s)):

    Target PrepareForBuild:
        Configuration: Debug Platform: x86

    Target GenerateSatelliteAssemblies:
    No input files were specified for target GenerateSatelliteAssemblies, skipping.

    Target GenerateTargetFrameworkMonikerAttribute:
    Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
Done building project "/home/beauxq/MonoProjects/cstest/cstest/cstest.csproj".-- FAILED

Build FAILED.
     0 Warning(s)

---------------------- Done ----------------------

Build successful.
Run Code Online (Sandbox Code Playgroud)

当我从菜单中选择“构建”时,也会发生同样的情况。“构建成功”但目录为空。

mono monodevelop

8
推荐指数
1
解决办法
7033
查看次数

标签 统计

mime-type ×1

mono ×1

monodevelop ×1

xdg-open ×1