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
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
Already did that, but still dont work, it give some random error and never compile xd
compile? does the aur require compiling?
Can i talk to you in private so you can see?
umm, what is wrong with here?
It dont count like flood or something?
if
ayugram-desktop
did not work try ayugram-desktop-bin
?Already tried both
I don't touch arch myself, sorry
I don't know how to troubleshoot that
I was trying to make the app an AppImage but cant make it work
Maybe you could help me make it no?
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
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 .
move the binary to
~/.local/bin
not /bin
Could you give me the complete command to do that please?
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 workJust put the /.local/share/applications/ for example in .desktop no?
~/.local
but yes
You put the .desktop file in that folderIm stuck in the .desktop thing, how i have to edit it?
the step 4 you sent
which felt like it was written by an LLM
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?
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
i get this

did you have to create the local bin?
Nop
odd, well for the desktop file the execs should have full paths and not use the ~ shorthand

that is if the binary name alone did not work
How i cant find the full path?
echo $HOME
that will give you what ~ turns into
or just pwd
in your home dir
Like this then
/home/bazzite/local/bin/ right?
that would be the path to the folder yes
you need the binary file name along with that on the exec lines

No Allow Launching

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
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?
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
Yeah but dont work

applications
not just .local/share
Yeah my bad
But still dont work
It oope some terminal and just close
is
ayugram-desktop
marked as exacutable?Yup
what happens when you try to run it from cli?

and I mean to run
~/.local/bin/ayugram-desktop
not the desktop file itselfyou mean ./AyuGram.desktop?
^
It opens but without the icon fixed
hey, sorry, my glasses are borken and I am using an old pair, my eyes are hurting too much to keep reading for now
Dont worry, thanks for the help, take rest, you eyes are more important
We can continue later
š