pvq

joined 1 year ago
 

Hello. I was wondering which command would allow me to know factually check which graphic library an application uses?

For instance, which UI library does telegram or firefox use? strace wouldn't work for that purpose as it deals with system calls, right? What about ltrace which works for library calls? I was able to find some gtk strings in the output of ltrace, but mostly strncmp(), strchr(), strlen(), memchr(), and one setenv(GTK_IM_MODULE, "gtk-im-context- simple"). Is that enough to conclude the process uses gtk?

It's a little verbose, so I wondered what about lsof to show open files. lsof -p <pid> shows me that the pid opens up libgtk-3.0.so... That seems conclusive enough, right? There wouldn't be any reason to open that libgtk-3.0.so shared object if it didn't use gtk?

Seems like lsof is better for getting this information rather than ltrace, right?

In the specific case of firefox, lsof does show that firefox uses libgtk-3.0.so as well as something called libmozgtk.so so I guess they don't fully use gtk, but their own thing as well?

In summary, what's the best and most reliable command to figure out which graphic library (QT, GTK, something else) an application uses? lsof?

Thanks

[–] pvq@kbin.social 2 points 1 year ago (2 children)

One of the things I used violentmonkey for was to redirect any reddit url to the old reddit.

Example

// ==UserScript==
// @name        Old reddit redirect
// @namespace   Violentmonkey Scripts
// @match       https://www.reddit.com/*
// @grant       none
// @version     1.0
// @author      -
// @description 10/8/2022, 8:20:18 PM
// ==/UserScript==

var str = window.location.href;
window.location.replace(str.replace("www.reddit.com", "old.reddit.com"));

[–] pvq@kbin.social 2 points 1 year ago (1 children)

It was pretty interesting that Yuzuriha ninjutsu does involve the use of Tao. I wonder if that means Gabimaru's fire is also an application of Tao?

Wonder who else will start using Tao. Shion probably already has some proficiency in Tao.

[–] pvq@kbin.social 3 points 1 year ago (1 children)

Only one episode to go. Now that they've confirmed that the immortality macguffin doesn't exist how will Gabimaru return to his wife?

[–] pvq@kbin.social 7 points 1 year ago (2 children)

What ever happened to initiatives such as project Treble? Do you guys think updates have gotten better on Android?

I remember when I used to be excited about Android OS updates and kept watching videos about new features (that I was not gonna get anytime soon because I was stuck in an old version of Android)... It's been years since I've been excited about an Android update.

Little side note rant:
My biggest annoyance with Android is the share menu. I hate how it's different for different apps (Firefox is vastly different from other apps for instance). I can notice at least 3 different sharing menus with the apps I frequently use. Makes it hard to build muscle memory.... And I cannot pin the apps I actually use frequently for sharing stuff. Also the direct share thing never worked for me. I think it's only for sharing via SMS or Email neither of which I use for sharing content, so it ended up being just a waste of space for me.

Hope they fix the share menu one day..... But then I'd have to wait to change my phone to get the updates.