-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
telegram-desktop: always wrap with wrapGAppsHook3 #357973
base: master
Are you sure you want to change the base?
Conversation
Required for invoking the file selector
Is there a way to globally do this? So many programs require this little hack and it's annoying to have to merge a PR for each one. |
That would negate the whole point of using nix: packages shouldn't require something to be installed globally.
Most of the programs are properly wrapped, this one was missed out during the last refactoring. |
Sorry, I meant something like patching Glib or whichever library to have a default schema path, not a global install by the user or NixOS. And I've personally had to file several, maybe the situation is better these days, but it seems there's always One More. Do you have a link to that refactoring? |
Ah, that sounds good! CC @jtojnar @bobby285271 for inputs.
I'm referring to telegram-desktop refactoring: #353524 |
See #271037. We still need to finish it up and do some testing. |
That's wrong. The file selector is driven by QFileDialog. If this happens to tdesktop, this should happen to any other Qt application on the same system. |
It does happen to any other Qt application on the same system. |
I mean, why tdesktop is treated special here? Shouldn't this be done to Qt, QGnomePlatform or wrapQtAppsHook instead? |
Oh this is on me, I'm forcing qt to use the gtk file selector by setting QT_QPA_PLATFORMTHEME to gtk3. |
It is not, other Qt apps are getting this treatment as well. Probably because it is not clear how to fix this properly so this hack tends spread.
🤷♀️ |
Ah, ok |
Required for invoking the file selector
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.