Skip to content

Commit

Permalink
Merge pull request #2 from IMbackK/master
Browse files Browse the repository at this point in the history
Fix tklock not showing in portrait because of invalid access check
  • Loading branch information
MerlijnWajer committed Sep 18, 2020
2 parents 375fc1e + 7db418f commit ed796d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visual-tklock.c
Expand Up @@ -835,7 +835,7 @@ visual_tklock_create_view_whimsy(vtklock_t *vtklock)
if (gc && gconf_client_get_bool(gc, "/system/systemui/tklock/auto_rotation", NULL) )
{
/* Check if we have force_fake_portrait lockslider background */
if (access("/etc/hildon/theme/backgrounds/lockslider-portrait.png", 0600) == 0)
if (access("/etc/hildon/theme/backgrounds/lockslider-portrait.png", R_OK) == 0)
{
hildon_gtk_window_set_portrait_flags(GTK_WINDOW(vtklock->window), HILDON_PORTRAIT_MODE_SUPPORT);
g_signal_connect(G_OBJECT(vtklock->window), "configure-event", G_CALLBACK(configure_event_cb), vtklock);
Expand Down

0 comments on commit ed796d7

Please sign in to comment.