Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-09-09 12:57:20

oinkl
Member
Registered: 2024-09-09
Posts: 2

Thunar accels.scm constantly rewritten

I version control Thunar's accels.scm to persist my keybinds between installations.

This file is constantly rewritten causing the lines to reorder, even though there are no keybind changes. This causes git to detect changed file.

I don't want to:

1. add the file to .gitignore (I want to track the file when there are real changes)
2. make the file unwriteable (I want to change keybinds without having to remember to toggle the writeable flag of accels.scm)

Offline

#2 2024-09-09 19:06:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: Thunar accels.scm constantly rewritten

Hello and welcome.

What version of Thunar are you running? On my system (4.18.11) I can see the file getting updated/re-written, but there are no changes (re-ordering of lines) happening. Exactly which lines are being re-ordered?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-09-09 20:08:28

oinkl
Member
Registered: 2024-09-09
Posts: 2

Re: Thunar accels.scm constantly rewritten

ToZ wrote:

Hello and welcome.

What version of Thunar are you running? On my system (4.18.11) I can see the file getting updated/re-written, but there are no changes (re-ordering of lines) happening. Exactly which lines are being re-ordered?

$ pacman -Q thunar
thunar 4.18.11-1


Multiple lines, occurring regularly. I'm not changing any keybinds, not even opening options.

Here are two sample diffs which occurred close together recently. Note that the diffs are line reorderings. Also note that even though the reordered actions seem quite similar, there will normally be more reordered actions over time.

Diff 1

@@ -50 +49,0 @@
-(gtk_accel_path "<Actions>/ThunarActions/uca-action-1627015063502823-1" "F4")
@@ -86,0 +86 @@
+; (gtk_accel_path "<Actions>/ThunarActionManager/delete-3" "<Shift>KP_Delete")
@@ -89 +89 @@
-(gtk_accel_path "<Actions>/ThunarActions/uca-action-1588493643887964-1" "F4")
+; (gtk_accel_path "<Actions>/ThunarWindow/close-all-windows" "<Primary><Shift>w")
@@ -92 +92 @@
-; (gtk_accel_path "<Actions>/ThunarWindow/close-all-windows" "<Primary><Shift>w")
+(gtk_accel_path "<Actions>/ThunarActions/uca-action-1588493643887964-1" "F4")
@@ -95 +95 @@
-; (gtk_accel_path "<Actions>/ThunarActionManager/delete-3" "<Shift>KP_Delete")
+; (gtk_accel_path "<Actions>/ThunarActionManager/open-with-other" "")
@@ -98 +98 @@
-; (gtk_accel_path "<Actions>/ThunarActionManager/open-with-other" "")
+; (gtk_accel_path "<Actions>/ThunarWindow/view-as-detailed-list" "<Primary>2")
@@ -104,2 +103,0 @@
-; (gtk_accel_path "<Actions>/ThunarWindow/view-as-detailed-list" "<Primary>2")
-; (gtk_accel_path "<Actions>/ThunarWindow/view-as-icons" "<Primary>1")
@@ -106,0 +105 @@
+; (gtk_accel_path "<Actions>/ThunarWindow/view-as-icons" "<Primary>1")
@@ -107,0 +107 @@
+(gtk_accel_path "<Actions>/ThunarActions/uca-action-1627015063502823-1" "F4")

1.png

Diff 2

@@ -49,0 +50 @@
+(gtk_accel_path "<Actions>/ThunarActions/uca-action-1627015063502823-1" "F4")
@@ -86 +86,0 @@
-; (gtk_accel_path "<Actions>/ThunarActionManager/delete-3" "<Shift>KP_Delete")
@@ -89 +89 @@
-; (gtk_accel_path "<Actions>/ThunarWindow/close-all-windows" "<Primary><Shift>w")
+(gtk_accel_path "<Actions>/ThunarActions/uca-action-1588493643887964-1" "F4")
@@ -92 +92 @@
-(gtk_accel_path "<Actions>/ThunarActions/uca-action-1588493643887964-1" "F4")
+; (gtk_accel_path "<Actions>/ThunarWindow/close-all-windows" "<Primary><Shift>w")
@@ -95 +95 @@
-; (gtk_accel_path "<Actions>/ThunarActionManager/open-with-other" "")
+; (gtk_accel_path "<Actions>/ThunarActionManager/delete-3" "<Shift>KP_Delete")
@@ -98 +98 @@
-; (gtk_accel_path "<Actions>/ThunarWindow/view-as-detailed-list" "<Primary>2")
+; (gtk_accel_path "<Actions>/ThunarActionManager/open-with-other" "")
@@ -104 +104 @@
-; (gtk_accel_path "<Actions>/ThunarWindow/new-window" "<Primary>n")
+; (gtk_accel_path "<Actions>/ThunarWindow/view-as-detailed-list" "<Primary>2")
@@ -105,0 +106 @@
+; (gtk_accel_path "<Actions>/ThunarWindow/new-window" "<Primary>n")
@@ -107 +107,0 @@
-(gtk_accel_path "<Actions>/ThunarActions/uca-action-1627015063502823-1" "F4")


2.png

Last edited by oinkl (2024-09-09 20:17:22)

Offline

#4 2024-09-09 22:57:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: Thunar accels.scm constantly rewritten

I notice that you have shortcuts set for your UCA action(s) - I do not. When I set shortcuts I get mixed results - once the file changed like you noticed, 3 other test attempts it didn't. I wonder if the keyboard shortcut might be the issue? Or it may be a red herring.

Might be best to create a bug report to get the developer to look at it. Feel free to reference this thread in your bug report.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 540.38 KiB (Peak: 541.66 KiB) ]