Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复linux下make时无open命令的问题 #110

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

Alex-Beng
Copy link

主要是修改了makefile

修改了平台判断

unix-like常见的应该也就Mac和Linux了吧(

    UNAME := $(shell uname)
    ifeq ($(UNAME), Darwin)
        PLATFORM = MacOS
    endif
    ifeq ($(UNAME), Linux)
        PLATFORM = Linux
    endif

linux中使用xdg-open打开编译好的pdf

参考linux.die.net的文档,xdg-open用于桌面上使用默认打开方式打开文件/url。与macos上的open用法一致。

linux下假设使用evince打开pdf

close查找pid的时候修改成了evince。evince是ubuntu的默认文档编辑器,考虑到应该也很少人用其他发行版。

@polossk polossk merged commit 9b10c16 into NWPUMetaphysicsOffice:public-dev Nov 16, 2023
@polossk
Copy link
Member

polossk commented Nov 16, 2023

已合并!感谢贡献!

@polossk
Copy link
Member

polossk commented Nov 20, 2023

#103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants