Update!
Esqueci de incluir o script que executa o programa no Linux para abrir o arquivo, e que é referenciado no registro via wine. O nome do script é wine2linux, e seu conteúdo deve ser o seguinte:
#!/bin/sh
$1 "`wine winepath -u "$2"`"
Precisei configurar algumas aplicações que utilizo sob o wine para abrir arquivos automaticamente ao clicar duas vezes, e tive alguma dificuldade até descobrir que era extremamente simples. Na verdade bastava pensar como usuário avançado do Windows ;-)
Salve o conteúdo abaixo num arquivo .REG e depois execute "wine regedit" e importe o arquivo. Simples assim! Incluí os tipos de arquivo que mais utilizo. Fiquem à vontade para incluir outros tipos de arquivo, e não deixem de postar a contribuição aqui nos comentários.
REGEDIT4
[HKEY_CLASSES_ROOT\.doc]
@="DOCFile"
"Content Type"="application/msword"
[HKEY_CLASSES_ROOT\.xls]
@="XLSFile"
"Content Type"="application/msexcel"
[HKEY_CLASSES_ROOT\.csv]
@="CSVFile"
"Content Type"="application/csv"
[HKEY_CLASSES_ROOT\.pdf]
@="PDFFile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\.odt]
@="ODTFile"
"Content Type"="application/openoffice"
[HKEY_CLASSES_ROOT\.ods]
@="ODSFile"
"Content Type"="application/openoffice"
[HKEY_CLASSES_ROOT\.zip]
@="ZIPFile"
"Content Type"="application/zip"
[HKEY_CLASSES_ROOT\DOCFile]
[HKEY_CLASSES_ROOT\DOCFile\shell]
[HKEY_CLASSES_ROOT\DOCFile\shell\open]
[HKEY_CLASSES_ROOT\DOCFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\XLSFile]
[HKEY_CLASSES_ROOT\XLSFile\shell]
[HKEY_CLASSES_ROOT\XLSFile\shell\open]
[HKEY_CLASSES_ROOT\XLSFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\CSVFile]
[HKEY_CLASSES_ROOT\CSVFile\shell]
[HKEY_CLASSES_ROOT\CSVFile\shell\open]
[HKEY_CLASSES_ROOT\CSVFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\PDFFile]
[HKEY_CLASSES_ROOT\PDFFile\shell]
[HKEY_CLASSES_ROOT\PDFFile\shell\open]
[HKEY_CLASSES_ROOT\PDFFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux evince \"%1\""
[HKEY_CLASSES_ROOT\ODTFile]
[HKEY_CLASSES_ROOT\ODTFile\shell]
[HKEY_CLASSES_ROOT\ODTFile\shell\open]
[HKEY_CLASSES_ROOT\ODTFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\ZIPFile]
[HKEY_CLASSES_ROOT\ODSFile]
[HKEY_CLASSES_ROOT\ODSFile\shell]
[HKEY_CLASSES_ROOT\ODSFile\shell\open]
[HKEY_CLASSES_ROOT\ODSFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\ZIPFile]
[HKEY_CLASSES_ROOT\ZIPFile\shell]
[HKEY_CLASSES_ROOT\ZIPFile\shell\open]
[HKEY_CLASSES_ROOT\ZIPFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux file-roller \"%1\""
Esqueci de incluir o script que executa o programa no Linux para abrir o arquivo, e que é referenciado no registro via wine. O nome do script é wine2linux, e seu conteúdo deve ser o seguinte:
#!/bin/sh
$1 "`wine winepath -u "$2"`"
Precisei configurar algumas aplicações que utilizo sob o wine para abrir arquivos automaticamente ao clicar duas vezes, e tive alguma dificuldade até descobrir que era extremamente simples. Na verdade bastava pensar como usuário avançado do Windows ;-)
Salve o conteúdo abaixo num arquivo .REG e depois execute "wine regedit" e importe o arquivo. Simples assim! Incluí os tipos de arquivo que mais utilizo. Fiquem à vontade para incluir outros tipos de arquivo, e não deixem de postar a contribuição aqui nos comentários.
REGEDIT4
[HKEY_CLASSES_ROOT\.doc]
@="DOCFile"
"Content Type"="application/msword"
[HKEY_CLASSES_ROOT\.xls]
@="XLSFile"
"Content Type"="application/msexcel"
[HKEY_CLASSES_ROOT\.csv]
@="CSVFile"
"Content Type"="application/csv"
[HKEY_CLASSES_ROOT\.pdf]
@="PDFFile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\.odt]
@="ODTFile"
"Content Type"="application/openoffice"
[HKEY_CLASSES_ROOT\.ods]
@="ODSFile"
"Content Type"="application/openoffice"
[HKEY_CLASSES_ROOT\.zip]
@="ZIPFile"
"Content Type"="application/zip"
[HKEY_CLASSES_ROOT\DOCFile]
[HKEY_CLASSES_ROOT\DOCFile\shell]
[HKEY_CLASSES_ROOT\DOCFile\shell\open]
[HKEY_CLASSES_ROOT\DOCFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\XLSFile]
[HKEY_CLASSES_ROOT\XLSFile\shell]
[HKEY_CLASSES_ROOT\XLSFile\shell\open]
[HKEY_CLASSES_ROOT\XLSFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\CSVFile]
[HKEY_CLASSES_ROOT\CSVFile\shell]
[HKEY_CLASSES_ROOT\CSVFile\shell\open]
[HKEY_CLASSES_ROOT\CSVFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\PDFFile]
[HKEY_CLASSES_ROOT\PDFFile\shell]
[HKEY_CLASSES_ROOT\PDFFile\shell\open]
[HKEY_CLASSES_ROOT\PDFFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux evince \"%1\""
[HKEY_CLASSES_ROOT\ODTFile]
[HKEY_CLASSES_ROOT\ODTFile\shell]
[HKEY_CLASSES_ROOT\ODTFile\shell\open]
[HKEY_CLASSES_ROOT\ODTFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\ZIPFile]
[HKEY_CLASSES_ROOT\ODSFile]
[HKEY_CLASSES_ROOT\ODSFile\shell]
[HKEY_CLASSES_ROOT\ODSFile\shell\open]
[HKEY_CLASSES_ROOT\ODSFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux ooffice \"%1\""
[HKEY_CLASSES_ROOT\ZIPFile]
[HKEY_CLASSES_ROOT\ZIPFile\shell]
[HKEY_CLASSES_ROOT\ZIPFile\shell\open]
[HKEY_CLASSES_ROOT\ZIPFile\shell\open\command]
@="/bin/sh /usr/local/bin/wine2linux file-roller \"%1\""
Nenhum comentário:
Postar um comentário