BOINC / boinc

Open-source software for volunteer computing and grid computing.
https://boinc.berkeley.edu
GNU Lesser General Public License v3.0
2.01k stars 446 forks source link

reference .desktop file #2339

Closed JuhaSointusalo closed 3 years ago

JuhaSointusalo commented 6 years ago

Different Linux distros have different ideas of what should be in .desktop file (the file behind the entry in start menu) for Manager. All the different versions could be upstreamed so that there is one reference file.

The most important part of the file is using Path to set working directory to BOINC's data directory so that Manager can find gui_rpc_auth.cfg. It would be nice if translation of the file was integrated with the rest of the BOINC translation system.

Arch Linux Debian Fedora Mageia Suse

BryanQuigley commented 6 years ago

I don't seem to need to set path - will have to test more cases. Having trouble building boinc atm, but will try to integrate in future.

Currently testing with: [Desktop Entry] Version=1.0 Type=Application Name=BOINC Manager Exec=boincmgr Icon=boincmgr Terminal=false Keywords=computation;science; Categories=System;Monitor;GTK; GenericName=BOINC monitor and control utility GenericName[cs]=Monitorovací a ovládací nástroj pro BOINC GenericName[de]=BOINC Überwachungs- und Kontrollprogramm GenericName[pt]=Monitorização BOINC e utilitário de controlo GenericName[pt_BR]=Utilitário de controle e monitoramento do BOINC Comment=Configure or monitor a BOINC core client Comment[cs]=Monitoruje a nastavuje klienta BOINC Comment[de]=BOINC Basis Client konfigurieren oder überwachen Comment[pt]=Configurar ou monitorizar o cliente básico do BOINC Comment[pt_BR]=Configure ou monitore o cliente básico do BOINC

JuhaSointusalo commented 6 years ago

Unless you have empty GUI RPC password (Debian/Ubuntu style) or have linked gui_rpc_auth.cfg to your home directory (IIRC, openSUSE style) then I'm pretty sure you need to set Path.

KeithMyers commented 6 years ago

I am having issues with Ubuntu 18.04 LTS and Boinc Manager and client. The manager doesn't have the Add to favorites right-click menu which would allow the app to dock like normal Linux apps. This was never an issue with 16.04 and Unity desktop manager. So the way the app is handled under Gnome desktop has changed. I tried to create the .desktop file using your linked example. Set the path to the BOINC folder on the Desktop. That allowed me to dock to the app. But when executed only the Manager window opens and does not start the client.

So can you tell me what I haven't done to get the Manager to start the client as it usually does?

KeithMyers commented 6 years ago

Update: Boinc Manager docks properly and connects to the client now. I used the boincmgr.desktop file from one of my 16.04 machines. That enabled me to dock the Manager app. But when clicked all it did was open the Manager window and never connected to the client. I was stumped. This morning I added another program and tried to get it docked with the borrowed .desktop file. I needed to install a couple of packages for that program to run and they pulled in about two dozen more packages. These were the packages installed for that program.

libblas3 (3.7.1-4ubuntu1) libgfortran4 (7.3.0-16ubuntu3) liblapack3 (3.7.1-4ubuntu1) python-numpy (1:1.13.3-2ubuntu1) libmng2 (2.0.2-0ubuntu3) libmysqlclient20 (5.7.22-0ubuntu18.04.1) libqt4-dbus (4:4.8.7+dfsg-7ubuntu1) libqt4-declarative (4:4.8.7+dfsg-7ubuntu1) libqt4-designer (4:4.8.7+dfsg-7ubuntu1) libqt4-help (4:4.8.7+dfsg-7ubuntu1) libqt4-network (4:4.8.7+dfsg-7ubuntu1) libqt4-script (4:4.8.7+dfsg-7ubuntu1) libqt4-scripttools (4:4.8.7+dfsg-7ubuntu1) libqt4-sql (4:4.8.7+dfsg-7ubuntu1) libqt4-sql-mysql (4:4.8.7+dfsg-7ubuntu1) libqt4-svg (4:4.8.7+dfsg-7ubuntu1) libqt4-test (4:4.8.7+dfsg-7ubuntu1) libqt4-xml (4:4.8.7+dfsg-7ubuntu1) libqt4-xmlpatterns (4:4.8.7+dfsg-7ubuntu1) libqtassistantclient4 (4.6.3-7build1) libqtcore4 (4:4.8.7+dfsg-7ubuntu1) libqtdbus4 (4:4.8.7+dfsg-7ubuntu1) libqtgui4 (4:4.8.7+dfsg-7ubuntu1) mysql-common (5.8+1.0.4) python-qt4 (4.12.1+dfsg-2) python-sip (4.19.7+dfsg-1) qdbus (4:4.8.7+dfsg-7ubuntu1) qt-at-spi (0.4.0-8) qtchooser (64-ga1b6736-5) qtcore4-l10n (4:4.8.7+dfsg-7ubuntu1) libxdo3 (1:3.20160805.1-3) xdotool (1:3.20160805.1-3)

While I was trying to get that program running from the Dock I accidentally clicked on the Manager and it opened up its window and connected to the client normally and tasks started running normally.

I hadn't made any changes to BOINC or its .desktop file since my posts in the forums asking for help. The Manager would not connect to the Client until after one or more of these packages were installed.

So can anyone offer an idea of which package was likely to enable the correct working of the Manager?

The support for BOINC and my python program are already in place in the 16.04 distribution but some part must be missing from the 18.04 distribution that prevents the correct docking and execution of the Manager until something else is installed.

Comments?

P.S. I still cannot get the python program to launch from the Dock using its borrowed 16.04 .desktop file. Runs fine when launched from its own folder.

JuhaSointusalo commented 6 years ago

@KeithMyers

This issue is about adding a .desktop file to BOINC repository so that every distro don't have to come up with their own file, each differing a little bit from others. Your problem seems to more about general troubleshooting and it's best handled in forums. Please ask moderators there to move your posts to a new thread dedicated to your problem.

KeithMyers commented 6 years ago

I don't understand your post. Which moderators? I have been asking everywhere for help solving this issue. This bug was referenced by Ageless as the likeliest place to get some response.

truboxl commented 4 years ago

This can be a blocker to https://github.com/BOINC/boinc/issues/2485 when creating Flatpak and AppImages ...and maybe Snaps

BryanQuigley commented 3 years ago

Looking more into this and getting a proper install of it.. the image files in clientgui/res/templates/icons/Final Design .. would need to be reorganized similar to how was done in Debian.

See Icon section in https://salsa.debian.org/pkg-boinc-team/boinc/-/blob/master/debian/README.source

Any issues with reorganizing that area?

BryanQuigley commented 3 years ago

does anyone have an icon variant in SVG format? I can only find the whole logo in SVG. It would just make sense to include that - and we can generate the pngs/etc from it too.

AenBleidd commented 3 years ago

We have it in XML format (SVG packed in XML): https://github.com/BOINC/boinc/blob/master/android/BOINC/app/src/main/res/drawable/ic_boinc.xml

BryanQuigley commented 3 years ago

Thank you @AenBleidd ! Incorporated based on that version for the updated PR.

I think starting with an SVG and a 64x64 png is good enough.