Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2021-01-07 Thread haaber

I'm not sure exactly what you mean, but there's:


I mean: It seems you need the file manager to open the file just to
register it as handler; is there an alternative not using the file manager?


not that I know. But you can register it "by hand" by creating a .dsktop
file yourself (as I explained earlier). Put these lines

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/home/user/.local/bin/send-to-vm.sh %f
Name=Send a screenshot to VM
Comment=Custom definition for send-to-vm.sh

in a new file in ~/.local/share/applications/userapp-screenshot.desktop

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/fc5559fd-e70b-de8c-f81d-390b5f59c4c5%40web.de.


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2021-01-06 Thread Ulrich Windl

On 1/2/21 9:31 PM, Andrew David Wong wrote:

On 1/2/21 9:05 AM, Ulrich Windl wrote:

On 12/30/20 8:20 AM, Andrew David Wong wrote:

On 12/29/20 10:02 AM, Ulrich Windl wrote:

[...]
When trying, it seems my Dom0 does not have a file manager in the 
menu. I had to run "thunar" manually from the terminal.


This is by design. Using a file manager in dom0 is a security risk 
and is therefore discouraged:


https://github.com/Qubes-Community/Contents/blob/master/docs/security/security-guidelines.md#dom0-precautions 



So is there an alternative that gets the user script registered for 
saving a screenshot?




I'm not sure exactly what you mean, but there's:


I mean: It seems you need the file manager to open the file just to 
register it as handler; is there an alternative not using the file manager?




https://github.com/QubesOS/qubes-issues/issues/953


Unfortunately the issue is quite long, and you are not referring to a 
specific comment...






--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e8b2a8fe-d908-6c88-5eeb-a6f7c33564b7%40rz.uni-regensburg.de.


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2021-01-02 Thread Andrew David Wong

On 1/2/21 9:05 AM, Ulrich Windl wrote:

On 12/30/20 8:20 AM, Andrew David Wong wrote:

On 12/29/20 10:02 AM, Ulrich Windl wrote:

[...]
When trying, it seems my Dom0 does not have a file manager in the 
menu. I had to run "thunar" manually from the terminal.


This is by design. Using a file manager in dom0 is a security risk and 
is therefore discouraged:


https://github.com/Qubes-Community/Contents/blob/master/docs/security/security-guidelines.md#dom0-precautions 



So is there an alternative that gets the user script registered for 
saving a screenshot?




I'm not sure exactly what you mean, but there's:

https://github.com/QubesOS/qubes-issues/issues/953

--
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e668b46b-f900-28a7-76ec-0c3ee740e2e2%40qubes-os.org.


OpenPGP_signature
Description: OpenPGP digital signature


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2021-01-02 Thread Ulrich Windl

On 12/30/20 8:20 AM, Andrew David Wong wrote:

On 12/29/20 10:02 AM, Ulrich Windl wrote:

[...]
When trying, it seems my Dom0 does not have a file manager in the 
menu. I had to run "thunar" manually from the terminal.


This is by design. Using a file manager in dom0 is a security risk and 
is therefore discouraged:


https://github.com/Qubes-Community/Contents/blob/master/docs/security/security-guidelines.md#dom0-precautions 



So is there an alternative that gets the user script registered for 
saving a screenshot?






--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/3b64ceae-b135-2b3f-d8b5-087ae8a0e6da%40rz.uni-regensburg.de.


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2020-12-29 Thread Andrew David Wong

On 12/29/20 10:02 AM, Ulrich Windl wrote:

[...]
When trying, it seems my Dom0 does not have a file manager in the menu. 
I had to run "thunar" manually from the terminal.


This is by design. Using a file manager in dom0 is a security risk and 
is therefore discouraged:


https://github.com/Qubes-Community/Contents/blob/master/docs/security/security-guidelines.md#dom0-precautions

--
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/af5a87e1-46e3-47aa-616c-78b931f686bf%40qubes-os.org.


OpenPGP_signature
Description: OpenPGP digital signature


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2020-12-29 Thread haaber

On 12/29/20 7:02 PM, Ulrich Windl wrote:

Better:  create in dom0 a file containing:

#!/bin/bash
qvm-copy-to-vm $(zenity --entry --title='Send to VM' --text='Destination
VM') "${BASH_ARGV[@]}"


Save that as an executable script, such as "~/.local/bin/send-to-vm.sh".
Then, open dom0 file manager, right click any png, click open with other
application, and under "use a custom command" enter "send-to-vm.sh %s".


When trying, it seems my Dom0 does not have a file manager in the menu.
I had to run "thunar" manually from the terminal.

you are right.


Also: Wouldn't qvm-move-to-vm be preferrable (also replacing "Send" with
"Move")?

you are right again. It was a "proof of concept" code. Thank you for the
correction!



This "registers" the script in the application list.

Then, when you take a screenshot, instead of choosing "save", choose
"open with..." and see if your script shows up in the list of available
applications. If still not, you might have to write a simple .desktop
file in ~/.local/share/applications in order for it to show
up as an option.

Or write it by hand: like
 ~/.local/share/applications/userapp-screenshot.desktop  containing

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/home/user/.local/bin/send-to-vm.sh %f
Name=Send a screenshot to VM
Comment=Custom definition for SCREENSHOT.sh


cheers

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/723ac154-6fb1-3469-b43e-9e960a0d630f%40web.de.


Re: [EXT] Re: [qubes-users] Disable lock screen / screenshot question

2020-12-29 Thread Ulrich Windl

On 12/23/20 9:14 AM, haaber wrote:

On 12/22/20 10:18 PM, Jarrah wrote:



How do you disable the automatic screen lock? I have the screensaver
disabled and the lock screen option unchecked but it still locks after a
few minutes.



For me, there is a "presentation mode" on the battery icon (which shows
on both desktop and laptop) that disables the screen lock.

Also when using the screenshot function in system tools, is it 
possible to
save to the AppVM file system you are currently using rather than to 
Dom0?

Or how do I access it once it is saved to Dom0?



You should be able to get them to your AppVM using `qvm-copy-to-vm  `  from the terminal.


Better:  create in dom0 a file containing:

#!/bin/bash
qvm-copy-to-vm $(zenity --entry --title='Send to VM' --text='Destination
VM') "${BASH_ARGV[@]}"


Save that as an executable script, such as "~/.local/bin/send-to-vm.sh".
Then, open dom0 file manager, right click any png, click open with other
application, and under "use a custom command" enter "send-to-vm.sh %s".


When trying, it seems my Dom0 does not have a file manager in the menu. 
I had to run "thunar" manually from the terminal.


Also: Wouldn't qvm-move-to-vm be preferrable (also replacing "Send" with 
"Move")?



This "registers" the script in the application list.

Then, when you take a screenshot, instead of choosing "save", choose
"open with..." and see if your script shows up in the list of available
applications. If still not, you might have to write a simple .desktop
file in ~/.local/share/applications in order for it to show
up as an option.





--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8a897236-c7da-4780-af9e-69e2900ad208%40rz.uni-regensburg.de.