You are not logged in.
there is a windows software that needs to install specefic fonts so as it can run correctlly
i want to make a PKGBUILD for that software so as it works with wine
i need to copy a fonts folder to: "$HOME"/.wine/drive_c/windows/Fonts/
but the folder of the wine prefix can be different from .wine so i need to print the current wine folder
is there a way to know that folder path?
Last edited by ardv (2024-10-04 05:36:51)
Offline
There can be multiple users and each user can have multi WINEPREFIXs.
Offline
https://wiki.archlinux.org/title/Wine#Fonts
Don't copy anything and ESPECIALLY not into /home w/ the PKGBUILD.
This falls into the category of your other thread - the invoking script shall properly setup and clean-up the environment around the invocation.
Offline
that software uses more that 600 special fonts (approximate 100 mb) files that needs to be installed otherwise it will not work. how to install theme in wine prefix so?
Offline
Yes, but not in anyone's $HOME - you can just temporarily symlink them there.
You don't install *anything* in the $WINEPREFIX. Period.
The package installs it in a system path and the invocation sets up a proper environment. Whether that's via winetricks or a custom script.
Imagine you'd install stuff for every users $HOME with the package, then add a new user snafu, how is that user gonna run the program now?
pacman has no business touching /home/*/* - everytime you want to do that, you've made a mistake in a previous step.
Offline
you can just temporarily symlink them there.
thank you. that is the solution so.
i have another question:
when i add an i con to the .desktop file it does not appear
this is an icon example:
https://www.iconarchive.com/show/fairy- … -icon.html
i copy its path to the icon attribute in the .desktop file but it is not shown.
any idea?
Offline
Please post the actual .desktop file, make sure it's generally used (eg. by changing the program name or so) and explain *where* it doesn't appear (ie. in what file application launcher)
Last edited by seth (2024-10-02 20:56:32)
Offline
Please post the actual .desktop file, make sure it's generally used (eg. by changing the program name or so) and explain *where* it doesn't appear (ie. in what file application launcher)
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=app name
Categories=Education;
Comment=comment
GenericName=app name
Keywords=education
Exec=/usr/bin/app.sh
Terminal=false
Type=Application
icon=/home/endeavouros/icon.png
i'm using KDE Plasma, the app in the dolphin browser is not shown nor in the menu after hitting meta key
Last edited by ardv (2024-10-02 21:25:40)
Offline
Please use code tags for outputs such as the contents of the .desktop file. Is the icon you are referencing actually installed to '/home/endeavouros/icon.png'?
Offline
Please use code tags for outputs such as the contents of the .desktop file. Is the icon you are referencing actually installed to '/home/endeavouros/icon.png'?
yes, it is installed there
Offline
What's the output of
uname -a
file /home/endeavouros/icon.png
the app in the dolphin browser is not shown nor in the menu after hitting meta key
So this isn't just about the icon, the entire entry isn't recognized?
Where exactly did you put the file?
Did you run "kbuildsycoca6" after adding it?
Offline
What's the output of
uname -a file /home/endeavouros/icon.png
the app in the dolphin browser is not shown nor in the menu after hitting meta key
So this isn't just about the icon, the entire entry isn't recognized?
Where exactly did you put the file?
Did you run "kbuildsycoca6" after adding it?
uname -a
Linux mail 6.11.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 30 Sep 2024 23:49:50 +0000 x86_64 GNU/Linux
[endeavouros@mail ~]$ file /home/endeavouros/icon.png
/home/endeavouros/icon.png: PNG image data, 256 x 256, 8-bit colormap, non-interlaced
i dont know what is "kbuildsycoca6"
Last edited by ardv (2024-10-02 21:37:02)
Offline
https://man.archlinux.org/man/extra/kse … coca6.8.en
Where exactly did you put the [desktop service] file?
Offline
Where exactly did you put the [desktop service] file?
i putted it in: /usr/share/applications/
this is the line in PKGBUILD:
install -Dm644 "${srcdir}/app.desktop" "${pkgdir}/usr/share/applications/app.desktop"
Offline
the problem was in "icon" attribute, it should be: "Icon" with capitalized "I" and not "i"
the problem is fixed now
Offline