Hello, everyone. Often I need to run a GUI application specifying some env variables, because some apps require them to work correctly. My particular example being: LC_ALL=zh_CN.utf8 wine /home/lockywolf/.wine/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe However, xfce4-apprunner doesn't support such commands. If someone could help with it, would be great.
If you don't mind me asking, why not a desktop file in ~/.local/share/applications, e.g. "WeChat (Chinese)"? It's more friendly, you may find it easier in expanded mode.
Well, xfce4-appfinder doesn't support such desktop files either. The work-aroud is to use env VAR=t wine WeChat.exe But still...
Created attachment 7898 appfinder local desktop files Are you sure? See the attached picture.
There are no environment variables set in this desktop file.
I meant to reply your comment "xfce4-appfinder doesn't support such desktop files either.". As for environment variables, it seems the desktop entry specification doesn't support them, you would need to workaround with "env" as you mentioned. I'll think about how to implement this, but don't hold your breath.
Oh, I am sorry! By 'such', I meant .desktop files having a command string like 'VAR=1 command %F'. I should have been more specific. Thank you for having a look at it.
Created attachment 8126 allow_envv_launcher.patch I finally took the time to tackle this, but I'm not confident this patch is ready to be committed, perhaps it leaks or is vulnerable to misuse.
I'll try to test it as soon as possible.
Hmm... doesn't seem to be working for me. I mean, I applied your patch, recompiled xfce4-apprunner, and started it with `./src/xfce4-apprunner -c' Still, the prompt doesn't accept 'LC_ALL=zh_CN.utf8 wine /home/lockywolf/.wine/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe'. Am I doing something wrong?
Sorry, obviously, `xfce4-appfinder -c'.
appfinder runs as a daemon, have tried 'xfce4-appfinder -q' first?
Indeed, this worked out fine. I didn't realize that ./src/xfce4-appfinder -c actually spawns the system's appfinder. Let me think if I can invent any tests for potential abuse of this feature.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-appfinder/-/issues/13. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev