bugdevilspie2 - Bugs: bug #62848, Aborted at function fopen()

 
 

bug #62848: Aborted at function fopen()

Submitter:  Marc <rubbercheese>
Submitted:  Mon 01 Aug 2022 12:26:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 01 Aug 2022 12:26:58 PM UTC, original submission:  

I’m trying to get devilspie2 to recognize an Emacs window by WM_NAME, which I’m setting with a command-line switch: emacs -q --name=elpher

According to xprop, the properties of the window in question then include the following:

WM_CLASS(STRING) = "elpher", "Emacs"
WM_ICON_NAME(STRING) = "elpher"
_NET_WM_ICON_NAME(UTF8_STRING) = "elpher"
WM_NAME(STRING) = "elpher"
_NET_WM_NAME(UTF8_STRING) = "elpher"


Ultimately I want my script to set the window’s icon:


if (get_window_name() == "elpher") then
  os.execute("xseticon -id " .. get_window_xid() .. " /home/username/.local/share/icons/papirus-dark/128x128/gemini.png");
end

debug_print("Window Name: " .. get_window_name());


The icon exists:

~ $ ls -lh ~/.local/share/icons/Papirus-Dark/128x128/gemini.png
-rw-r--r-- 1 username username 3.1K Aug  1 12:30 /home/username/.local/share/icons/Papirus-Dark/128x128/gemini.png


While I’ve had success getting devilspie2 to recognize kitty terminal windows (albeit by class and not name) in order to set icons, in this case devilspie2 reports that something aborted:


~ $ devilspie2 -d
Running devilspie2 in debug mode.

Using scripts from folder: /home/username/.config/devilspie2
------------
List of Lua files handling "window_open" events in folder:
/home/username/.config/devilspie2/set-icons.lua
List of Lua files handling "window_close" events in folder:
List of Lua files handling "window_focus" events in folder:
List of Lua files handling "window_blur" events in folder:
------------
Window Name: devilspie2 /home/username
Window Name: Desktop
Window Name: xfce4-panel
Aborted at function fopen()
Window Name: elpher


And the icon is not set. Is there a bug somewhere or am I doing something wrong?

Marc <rubbercheese>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dsalt (Updated the item)
  • -email is unavailable- added by rubbercheese (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-06 dsalt Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code