Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux pcmanfm qt自定义操作中的多个命令?_Linux_Pipe_Pandoc_File Manager_Pcmanfm - Fatal编程技术网

Linux pcmanfm qt自定义操作中的多个命令?

Linux pcmanfm qt自定义操作中的多个命令?,linux,pipe,pandoc,file-manager,pcmanfm,Linux,Pipe,Pandoc,File Manager,Pcmanfm,解决方案和完整的执行行 Exec=sh -c 'sed -i "1s:.*:<body background=%f>:" /home/burak/Not/Shortcuts.mkd && pandoc -f markdown /home/burak/Not/Shortcuts.mkd --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html &

解决方案和完整的执行行

Exec=sh -c 'sed -i "1s:.*:<body background=%f>:" /home/burak/Not/Shortcuts.mkd && pandoc -f markdown /home/burak/Not/Shortcuts.mkd --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html && phantomjs /home/burak/bin/shortcuts.js file:///home/burak/Not/Shortcuts.html /home/burak/Not/shortcuts.jpg 1920px*1080px && feh --bg-fill /home/burak/Not/shortcuts.jpg'
下面的第三个命令将Shortcuts.html转换为Shortcuts.jpg

phantomjs shortcuts.js file:///home/burak/Not/Shortcuts.html shortcuts.jpg 1920px*1080px
最后,下面的第四个命令将上面的shortcuts.jpg图像设置为桌面墙纸(将所有快捷方式、bash别名和一些其他命令嵌入桌面)

因此,在最后,我会轻松地更改墙纸,并将我的键盘快捷键和别名等嵌入到每一张新墙纸中,如下所示:

现在,如前所述,我停留在开始阶段,即无法将第二个命令添加到第一个命令。我尝试过这个,但没有成功:

Exec=sed -i "1s:.*:<body background=%f>:" /home/burak/Not/Shortcuts.mkd && pandoc -f markdown /home/burak/Not/Shortcuts.mkd --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html
Exec=sed-i“1s:*:”/home/burak/Not/Shortcuts.mkd&&pandoc-f markdown/home/burak/Not/Shortcuts.mkd--css/home/burak/Public/css/pandoc2.css-s-s-w html-o/home/burak/Not/Shortcuts.html
这两者都不起作用:

Exec=sh -c "sed -i "1s:.*:<body background=%f>:" /home/burak/Not/Shortcuts.mkd && pandoc -f markdown /home/burak/Not/Shortcuts.mkd --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html"
Exec=sh-c“sed-i”1s:*:“/home/burak/Not/Shortcuts.mkd&&pandoc-f markdown/home/burak/Not/Shortcuts.mkd--css/home/burak/Public/css/pandoc2.css-s-s-w html-o/home/burak/Not/Shortcuts.html”
和管道(|)这两个命令在终端中工作,但在自定义操作桌面文件中不工作


我该怎么做(在Arch Linux和Fluxbox上,如果这很重要的话)?

该死!。。我想我以前试过,但似乎不是这样。那么,管道以这种方式工作:

Exec:sh -c 'sed "1s:.*:<body background=%f>:" < /home/burak/Not/Shortcuts.mkd | pandoc --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html'
Exec:sh-c'sed“1s:.*:”
该死!。。我想我以前试过,但似乎不是这样。那么,管道以这种方式工作:

Exec:sh -c 'sed "1s:.*:<body background=%f>:" < /home/burak/Not/Shortcuts.mkd | pandoc --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html'
Exec:sh-c'sed“1s:.*:”
Exec=sh -c "sed -i "1s:.*:<body background=%f>:" /home/burak/Not/Shortcuts.mkd && pandoc -f markdown /home/burak/Not/Shortcuts.mkd --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html"
Exec:sh -c 'sed "1s:.*:<body background=%f>:" < /home/burak/Not/Shortcuts.mkd | pandoc --css /home/burak/Public/CSS/pandoc2.css -s -S -w html -o /home/burak/Not/Shortcuts.html'