Python Forum
Current foreground application
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Current foreground application
#1
Trying to figure out the name of the current foreground application running, in Linux. Having things like the PID and Windowtitle are nice ... But, I need the application name itself. Like Chrome, nano, vim, etc ... If anyone knows how to do it in a bash script that'd be great also. But, I'll gladly take a python script.
Reply


Messages In This Thread
Current foreground application - by tibegato - May-24-2020, 07:09 PM
RE: Current foreground application - by bowlofred - May-24-2020, 09:13 PM
RE: Current foreground application - by tibegato - May-24-2020, 11:12 PM
RE: Current foreground application - by bowlofred - May-24-2020, 11:30 PM
RE: Current foreground application - by tibegato - May-25-2020, 12:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Starting and running .bat in background, tkinter in foreground ProfMeowintgon 9 1,812 Sep-01-2023, 12:00 PM
Last Post: deanhystad
  How to send data from a python application to an external application aditya_rajiv 1 2,342 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  A problem with a TButton's foreground 'active' color. Mik3e 0 1,484 Sep-10-2020, 01:12 AM
Last Post: Mik3e

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020