Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-07-15 18:44:53

hellogoo
Member
Registered: 2017-07-14
Posts: 5

Thunar: can't import uca.xml (custom actions menu)?

I just installed Thunar 1.6.12 (was using Thunar-extended 1.6.11 from the Arch User Repository and I'm trying to copy over my uca.xml file with my custom actions.

The file is located in ~/.config/Thunar/uca.xml but somehow Thunar doesn't load it. Adding a test action does write the right file though.

Any advice on what could be the problem?

Here's the uca.xml content:

<?xml encoding="UTF-8" version="1.0"?>
<actions>
<action>
    <icon>utilities-terminal</icon>
    <name>Open Terminal Here</name>
    <unique-id>1486853177330099-2</unique-id>
    <command>exo-open --working-directory %f --launch TerminalEmulator</command>
    <description>Example for a custom action</description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <startup-notify/>
    <directories/>
</action>
<action>
    <icon>application-archive-zip</icon>
    <name>simple extract</name>
    <unique-id>1486851505364647-1</unique-id>
    <command>/home/user/bin/simple_extract_ark.sh %F</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <startup-notify/>
    <other-files/>
</action>
<action>
    <icon></icon>
    <name>simple extract auto</name>
    <unique-id>1486853179834380-3</unique-id>
    <command>/home/user/bin/simple_extract_ark_auto.sh %F</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <other-files/>
</action>
<action>
    <icon>/usr/share/icons/hicolor/48x48/apps/mcomix.png</icon>
    <name>mcomix</name>
    <unique-id>1492442359395259-3</unique-id>
    <command>~/bin/mcomix_dir.sh %f</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <startup-notify/>
    <directories/>
    <other-files/>
</action>
<action>
    <icon>catfish</icon>
    <name>catfish search</name>
    <unique-id>1487261829243212-1</unique-id>
    <command>catfish --path=%f</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <other-files/>
</action>
<action>
    <icon>mpv</icon>
    <name>mpv_dir</name>
    <unique-id>1486853185505794-6</unique-id>
    <command>/home/user/bin/mpv_dir %f</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <audio-files/>
    <image-files/>
    <other-files/>
    <video-files/>
</action>
<action>
    <icon>mpv</icon>
    <name>mpv_shuffle</name>
    <unique-id>1486853187865913-7</unique-id>
    <command>/home/user/bin/mpv_shuffle %F</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <audio-files/>
    <image-files/>
    <other-files/>
    <video-files/>
</action>
<action>
    <icon>tap-create</icon>
    <name>7z add</name>
    <unique-id>1486853190001513-8</unique-id>
    <command>/home/user/bin/7z_add.sh %f</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <audio-files/>
    <image-files/>
    <other-files/>
    <text-files/>
    <video-files/>
</action>
<action>
    <icon>tap-create</icon>
    <name>7z add rem series</name>
    <unique-id>1492026661968067-3</unique-id>
    <command>/home/user/bin/7z_add_rem_series.sh %f</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <audio-files/>
    <image-files/>
    <other-files/>
    <text-files/>
    <video-files/>
</action>
<action>
    <icon></icon>
    <name>move market</name>
    <unique-id>1486853191897444-9</unique-id>
    <command>/home/user/bin/move_market %D %N</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <other-files/>
</action>
<action>
    <icon></icon>
    <name>renurl</name>
    <unique-id>1488156464296025-3</unique-id>
    <command>/home/user/bin/renurl %d %n</command>
    <description></description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <other-files/>
</action>
<action>
    <icon></icon>
    <name>pictures to mp4</name>
    <unique-id>1492031129313954-4</unique-id>
    <command>/home/user/bin/video_scripts/pictures_to_mp4.sh %f</command>
    <description>converts series of pictures in a directory to mp4 video</description>
    <upper>1</upper>
    <lower>1</lower>
    <patterns>*</patterns>
    <directories/>
</action>
<action>
    <icon></icon>
    <name>diff with meld</name>
    <unique-id>1494418147309711-1</unique-id>
    <command>meld %F</command>
    <description>meld diff compare</description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <directories/>
    <text-files/>
</action>
<action>
    <icon></icon>
    <name>mp4_convert</name>
    <unique-id>1498150577583534-6</unique-id>
    <command>~/bin/video_scripts/convert_to_mp4.sh move %F</command>
    <description>convert and move</description>
    <upper>-1</upper>
    <lower>-1</lower>
    <patterns>*</patterns>
    <audio-files/>
    <image-files/>
    <other-files/>
    <text-files/>
    <video-files/>
</action>
</actions>

Offline

#2 2017-07-15 18:50:03

hellogoo
Member
Registered: 2017-07-14
Posts: 5

Re: Thunar: can't import uca.xml (custom actions menu)?

Nevermind, I found the problem. This is due to the slightly different syntax in the extended version. By the way, I miss the split window feature in extended sad

$ strace thunar &> /tmp/thunar1.strace ; vim /tmp/thunar1.strace

stat("/home/user/.config/Thunar/uca.xml", {st_mode=S_IFREG|0644, st_size=4824, ...}) = 0
open("/home/user/.config/Thunar/uca.xml", O_RDONLY) = 20
fstat(20, {st_mode=S_IFREG|0644, st_size=4824, ...}) = 0
read(20, "<?xml encoding=\"UTF-8\" version=\""..., 4824) = 4824
close(20)                               = 0
getpeername(2, 0x7ffcba021bb0, [128])   = -1 ENOTSOCK (Socket operation on non-socket)
futex(0x7fc1ac6bc4a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
ioctl(2, TCGETS, 0x7ffcba021b90)        = -1 ENOTTY (Inappropriate ioctl for device)
getpid()                                = 9812
write(2, "\n(thunar:9812): thunar-uca-WARNI"..., 118
(thunar:9812): thunar-uca-WARNING **: Failed to load `/home/user/.config/Thunar/uca.xml': Unknown element <upper>
) = 118

Last edited by hellogoo (2017-07-15 18:53:38)

Offline

Board footer

Powered by FluxBB