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

coqide should come with a coqide.desktop file #15182

Open
SnarkBoojum opened this issue Nov 13, 2021 · 3 comments
Open

coqide should come with a coqide.desktop file #15182

SnarkBoojum opened this issue Nov 13, 2021 · 3 comments
Labels
kind: design discussion Discussion about the design of a feature. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq. part: installation The installation process.
Projects

Comments

@SnarkBoojum
Copy link
Contributor

Most desktop-oriented apps come with a .desktop file, which gets shipped in /usr/share/applications/ on Debian. You can read about them here.

In coq 8.14.0, there is no coqide.desktop, but there is one in the Debian package, written by Ralf Treinen ; here is its content:

[Desktop Entry]
Name=CoqIDE Proof Assistant
Comment=Graphical interface for the Coq proof assistant
Exec=coqide
Type=Application
Categories=Development;Science;Math;IDE;GTK;
Terminal=false
Icon=coq
Keywords=Science;Math

you might want to include it yourselves, and improve on it (adding translations, for example).

@Alizter Alizter added kind: design discussion Discussion about the design of a feature. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq. part: installation The installation process. labels Nov 17, 2021
@Alizter
Copy link
Contributor

Alizter commented Nov 17, 2021

Why exactly do we want to include one here if the debian package already has one? The .desktop file seems to be only relevent for a few select Linux distributions so it seems pretty irrelevant elsewhere. Not to mention, coq (together with coqide) is typically installed using opam. What use is the desktop file there?

@SnarkBoojum
Copy link
Contributor Author

You seem highly confused:

  • Linux distributions and the *BSD are first-class distributions, providing complete operating systems, running computers from the bare metal up to the top, and making a ton of software available to all users on the system ;
  • opam is as far as I know a second-class distribution, providing only little software, for a single user on each system and depends on a real distribution to get it up and staggering.

"Both" (the first item is a big plenty) allow users to install coqide.

But once it's there -- no matter how, as a graphical application, it's nice to have it available in whatever menu the user is running, ready to be directly launched or added in a quick-launch series of icons for later everyday use. This is about being user-friendly.

And there, on linux distributions and the *BSD (which many of coq users are running), many types of menus are available, depending on the user interface chosen (gnome, kde, xfce, lxde, ... again a long list). But there is a good news: the developers of all these desktop systems got together years ago (twenty?) and agreed on a common way to declare graphical applications so they appear in their specific menu.

This is what .desktop files are about. You already ship an icon. With a .desktop file, on a same system, once the software is installed, even if the different users use different graphical environments, the system-wide installation of coqide is available to all of them in an easy-to-go way. Opam could install it too, as there are places where to put a .desktop for the software installed by a single user in her or his home directory.

In Debian, since no .desktop was available upstream, Ralf Treinen wrote one. Here is what they have in Fedora, and I'm pretty sure other distributions have one too. But it's always only rudimentary. By making it common, the coq developers can make it better.

@Zimmi48
Copy link
Member

Zimmi48 commented Nov 29, 2021

Indeed, desktop files are useful for a wide variety of distributions (nixpkgs / NixOS got its own coqide.desktop file recently: NixOS/nixpkgs#138072). I'd be surprised if it was not possible to install software with desktop files with opam as well.

Without a desktop file, you can only launch CoqIDE through the console. It can be useful to quickly launch CoqIDE directly from the desktop for quick uses (even though you probably still want to launch it from the console when working on an actual project).

@Alizter Alizter added this to Wish in CoqIDE May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: design discussion Discussion about the design of a feature. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq. part: installation The installation process.
Projects
CoqIDE
  
Wish
Development

No branches or pull requests

3 participants