How to install external .desktop app

I want to install ayugram, it have it one exe, ico and .desktop file the problem is in this distro i cant move it to /bin/ or even use /usr/share so if there is a way please help me install it like a system app šŸ˜”
51 Replies
Azema Viator
Azema Viator•2w ago
I think creating an arch distrobox and installing the AUR version of the app would be the simple route. https://github.com/AyuGram/AyuGramDesktop/tree/dev?tab=readme-ov-file#arch-linux you should be able to export the app from the distrobox and run it like normal
GitHub
GitHub - AyuGram/AyuGramDesktop: Desktop Telegram client with good ...
Desktop Telegram client with good customization and Ghost mode. - AyuGram/AyuGramDesktop
Migue
MigueOP•2w ago
Already did that, but still dont work, it give some random error and never compile xd
Azema Viator
Azema Viator•2w ago
compile? does the aur require compiling?
Migue
MigueOP•2w ago
Can i talk to you in private so you can see?
Azema Viator
Azema Viator•2w ago
umm, what is wrong with here?
Migue
MigueOP•2w ago
It dont count like flood or something?
Azema Viator
Azema Viator•2w ago
if ayugram-desktop did not work try ayugram-desktop-bin ?
Migue
MigueOP•2w ago
Already tried both
Azema Viator
Azema Viator•2w ago
I don't touch arch myself, sorry I don't know how to troubleshoot that
Migue
MigueOP•2w ago
I was trying to make the app an AppImage but cant make it work Maybe you could help me make it no?
Azema Viator
Azema Viator•2w ago
I have never tried making an appimage, I would suggest a flatpak instead. why are you trying to package it in some other from anyway? I did not see a .desktop on their github also, so I don't know what install method you were even trying to use
Migue
MigueOP•2w ago
They use they telegram Channel to update it Instructions for installing AyuGram and the desktop shortcut: 1. Unzip the file and go to the folder with the build tar -zxvf ayugram-5.11.1.tar.gz cd release 2. Move the shortcut to the desktop cp AyuGram.desktop ~/Desktop/AyuGram.desktop 3. Move the executable file to /bin (directory for storing program binaries) and enable launch sudo cp AyuGram /bin/ayugram-desktop sudo chmod +x /bin/ayugram-desktop 4. Correct the icon. Let's say we unpacked the archive to /home/andrew/Release . This means the icon will have the path /home/andrew/Release/ayugram-desktop.png . We will delete the archive with the build later, since we have already scattered all its files around the system. Let's copy the icon to /home/andrew/ayuico.png (You can copy it anywhere, I am just showing you an example). Open our AyuGram shortcut on the desktop using a text editor. Change the path to the icon ( ayugram-desktop.png ) (line 5) to the path where we placed it. Let me remind you that for the example I placed it at /home/andrew/ayuico.png .
Azema Viator
Azema Viator•2w ago
move the binary to ~/.local/bin not /bin
Migue
MigueOP•2w ago
Could you give me the complete command to do that please?
Azema Viator
Azema Viator•2w ago
cp AyuGram ~/.local/bin/ayugram-desktop cp AyuGram.desktop ~/.local/share/applications/AyuGram.desktop the desktop file will need to be edit still but that should work
Migue
MigueOP•2w ago
Just put the /.local/share/applications/ for example in .desktop no?
Azema Viator
Azema Viator•2w ago
~/.local but yes You put the .desktop file in that folder
Migue
MigueOP•2w ago
Im stuck in the .desktop thing, how i have to edit it?
Azema Viator
Azema Viator•2w ago
the step 4 you sent which felt like it was written by an LLM
Migue
MigueOP•2w ago
Desktop Entry] Name=AyuGram Desktop TryExec=~/.local/bin/ayugram-desktop Exec=~/.local/bin/ayugram-desktop -- %u Icon=ayugram-desktop.png Terminal=false StartupWMClass=AyuGram Type=Application Categories=Chat;Network;InstantMessaging;Qt; MimeType=x-scheme-handler/tg; Keywords=tg;chat;im;messaging;messenger;sms;telegram;tdesktop; Actions=quit; DBusActivatable=true SingleMainWindow=true X-GNOME-UsesNotifications=true X-GNOME-SingleWindow=true [Desktop Action quit] Exec=~/.local/bin/ayugram-desktop -quit Name=Quit AyuGram Icon=application-exit I modify it like this, is ok?
Azema Viator
Azema Viator•2w ago
the only thing you shoudl have needed ot edit is teh icon the Exec should not need to have be edied as ~/.local/bin should be in your user path
Migue
MigueOP•2w ago
i get this
No description
Azema Viator
Azema Viator•2w ago
did you have to create the local bin?
Migue
MigueOP•2w ago
Nop
Azema Viator
Azema Viator•2w ago
odd, well for the desktop file the execs should have full paths and not use the ~ shorthand
Migue
MigueOP•2w ago
No description
Azema Viator
Azema Viator•2w ago
that is if the binary name alone did not work
Migue
MigueOP•2w ago
How i cant find the full path?
Azema Viator
Azema Viator•2w ago
echo $HOME that will give you what ~ turns into or just pwd in your home dir
Migue
MigueOP•2w ago
No description
Migue
MigueOP•2w ago
Like this then /home/bazzite/local/bin/ right?
Azema Viator
Azema Viator•2w ago
that would be the path to the folder yes you need the binary file name along with that on the exec lines
Migue
MigueOP•2w ago
No description
Migue
MigueOP•2w ago
No Allow Launching
No description
Azema Viator
Azema Viator•2w ago
try properties also that looks like it is on your desktop, you will truly want that file to be where I said before in the local share apps folder that way the gnome knows about it gnome does not look for apps on your desktop
Migue
MigueOP•2w ago
I dont want it in my desktop I want it where all the others apps are So you telling me to move my .desktop to local share?
Azema Viator
Azema Viator•2w ago
like I was saying here you don't need to do it from cli you could just drag it if you have the folder open too
Migue
MigueOP•2w ago
Yeah but dont work
Migue
MigueOP•2w ago
No description
Azema Viator
Azema Viator•2w ago
applications not just .local/share
Migue
MigueOP•2w ago
Yeah my bad But still dont work It oope some terminal and just close
Azema Viator
Azema Viator•2w ago
is ayugram-desktop marked as exacutable?
Migue
MigueOP•2w ago
Yup
Azema Viator
Azema Viator•2w ago
what happens when you try to run it from cli?
Migue
MigueOP•2w ago
No description
Azema Viator
Azema Viator•2w ago
and I mean to run ~/.local/bin/ayugram-desktop not the desktop file itself
Migue
MigueOP•2w ago
you mean ./AyuGram.desktop?
Azema Viator
Azema Viator•2w ago
^
Migue
MigueOP•2w ago
It opens but without the icon fixed
Azema Viator
Azema Viator•2w ago
hey, sorry, my glasses are borken and I am using an old pair, my eyes are hurting too much to keep reading for now
Migue
MigueOP•2w ago
Dont worry, thanks for the help, take rest, you eyes are more important We can continue later šŸ™‚

Did you find this page helpful?