You are not logged in.

#1 2024-10-02 15:16:22

ardv
Member
Registered: 2024-03-24
Posts: 31

[SOLVED] how to print current wine prefix path

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

#2 2024-10-02 15:25:29

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: [SOLVED] how to print current wine prefix path

There can be multiple users and each user can have multi WINEPREFIXs.

Offline

#3 2024-10-02 15:30:59

seth
Member
Registered: 2012-09-03
Posts: 58,779

Re: [SOLVED] how to print current wine prefix path

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

#4 2024-10-02 15:55:01

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

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

#5 2024-10-02 16:22:57

seth
Member
Registered: 2012-09-03
Posts: 58,779

Re: [SOLVED] how to print current wine prefix path

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

#6 2024-10-02 20:16:45

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

seth wrote:

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

#7 2024-10-02 20:55:59

seth
Member
Registered: 2012-09-03
Posts: 58,779

Re: [SOLVED] how to print current wine prefix path

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

#8 2024-10-02 21:17:05

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

seth wrote:

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

#9 2024-10-02 21:24:26

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: [SOLVED] how to print current wine prefix path

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

#10 2024-10-02 21:26:07

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

loqs wrote:

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

#11 2024-10-02 21:34:20

seth
Member
Registered: 2012-09-03
Posts: 58,779

Re: [SOLVED] how to print current wine prefix path

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

#12 2024-10-02 21:36:31

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

seth wrote:

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

#13 2024-10-02 21:41:47

seth
Member
Registered: 2012-09-03
Posts: 58,779

Re: [SOLVED] how to print current wine prefix path

https://man.archlinux.org/man/extra/kse … coca6.8.en

seth wrote:

Where exactly did you put the [desktop service] file?

Offline

#14 2024-10-04 02:04:16

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

seth wrote:

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

#15 2024-10-04 03:00:31

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to print current wine prefix path

the problem was in "icon" attribute, it should be: "Icon" with capitalized "I" and not "i"
the problem is fixed now

Offline

Board footer

Powered by FluxBB